Link to home
Start Free TrialLog in
Avatar of mato01
mato01Flag for United States of America

asked on

Excel Nested If Statement

Can anyone tell me what's wrong with this formula.  I keep getting #VALUE! in the cell.

What I want spelled out is

If I13>0 then "" and If $H7=0 then ""
or if $I13=0, "".
Else the SUM(J13:X13)+H13

=IF(AND($I13>0, $H7=0, ""),IF($I13=0," ",SUM(J13:X13)+H13))
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

You have a bracket in the wrong place, should be:

=IF(AND($I13>0, $H7=0),"",IF($I13=0," ",SUM(J13:X13)+H13))

Thanks
Rob H
ASKER CERTIFIED SOLUTION
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perhaps this

=IF(OR(AND($I13>0,$H7=0),$I13=0),"",SUM(H13,J13:X13))

regards, barry
Just counted the brackets, lose the one on the end!

RH