Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

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))
0
mato01
Asked:
mato01
  • 3
1 Solution
 
Rob HensonIT & Database AssistantCommented:
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
0
 
Rob HensonIT & Database AssistantCommented:
Incorporating the OR, you could have:

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

Thanks
Rob H

0
 
barry houdiniCommented:
Perhaps this

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

regards, barry
0
 
Rob HensonIT & Database AssistantCommented:
Just counted the brackets, lose the one on the end!

RH
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now