IF

Stylus88

New Member
Joined
Oct 31, 2019
Messages
5
I've discovered this thread from a little time, so if it's possible i post another doubt.

I have this formula (really is longer but if a part is correct i suppose that all can be correct as well)

=IF(D15<>0,5 +IF(E15<>0,5 +IF(F15>0,5)))

I wanna have a total that give me a value if any,one,or some of this conditions are confirmed, but in the way that is written it works just if the cell before support the conditions: so it give me 15 If D15 is >0 and E15>5 and F15>5 but it doesn't give me 10 if D15 is 0 and E15>0 and F15>0 or D15>0 E15 is 0 and F15>0
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,

Separate the Ifs then add them together e.g.

=IF(D15<>0,5,0)+IF(E15<>0,5,0)+IF(F15>0,5,0)

I am sure someone could / will come up with an easier way, such as COUNTIF, but this should get you started.

Hope this helps,

Eric
 
Last edited:
Upvote 0
Please review the following to see if one or more of the alternatives addresses your question.



Excel 2010
BCD
2101010
6c
Cell Formulas
RangeFormula
B2=IF(D15<>0,5,0)+IF(E15<>0,5,0)+IF(F15>0,5,0)
C2=COUNTIF(D15:E15,"<>"&0)*5
D2=(D15<>0)*5+(E15<>0)*5+(F15>0)*5
 
Upvote 0
Thank you! I realized to have forgotten the brackets in the first formula and now it works! Interesting the second one too, I didn't know it.
So kind as always!
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top