Forum

Notifications
Clear all

Help with a formula

7 Posts
4 Users
0 Reactions
163 Views
(@mideyelaura)
Posts: 3
Active Member
Topic starter
 

Hello, It's been quite sometime since I had to use Excel for anything other than basic stuff, so my skills have become rusty.  I am trying to use the IF function and I'm not getting what I need.  Here is what I am looking for.  If L3=0 then I need M3 to equal the total of F3+G3+H3+J3 *.15.  Can someone help me?  Thanks!

 
Posted : 25/02/2021 9:28 am
(@henryg)
Posts: 7
Active Member
 

try in M3

=if(L3=0,(F3+G3+H3+J3)*0.15,"") or =if(L3=0,sum(F3:J3)*0.15,"") assuming you want the result of the summation multiplied by .15 as opposed to just J3.

 
Posted : 25/02/2021 10:38 am
(@mideyelaura)
Posts: 3
Active Member
Topic starter
 

Thanks for the suggestion, I have tried those and get errors 508 (brackets don't add up) and 509 (missing operator). I feel those should work, but they aren't.

 
Posted : 25/02/2021 11:28 am
(@henryg)
Posts: 7
Active Member
 

Sorry, works for me, and I can't imagine why it doesn't for you. Did you copy and paste the formulas? Do all the cells F3:J3 contain numbers?

 
Posted : 25/02/2021 2:07 pm
(@mynda)
Posts: 4761
Member Admin
 

Sometimes the double quotes get copied in a different style when copying from web pages. I would try entering the formula by typing it in yourself to see if that helps. If not, share a screenshot of your formula or a sample Excel file.

 
Posted : 25/02/2021 8:24 pm
(@questvba)
Posts: 125
Estimable Member
 

Hi Laura,

When you post a question, it is a good idea to specify whether you are using Excel or Calc or... The errors you mention seem to come from Calc. You cannot simply copy and paste henry's formula because Calc uses other settings. For example, on my machine I had to replace the ',' with ';'. The easiest way is to understand the formula and then write it in Calc, taking care of the help information.

BR,

Lionel

 
Posted : 26/02/2021 1:06 am
(@mideyelaura)
Posts: 3
Active Member
Topic starter
 

Once I typed it in rather than copy/paste, it is working like it should. Thanks for the help everyone!

 
Posted : 26/02/2021 2:04 pm
Share: