Solved

# Excel Nested If Statement

Posted on 2011-10-18
225 Views
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
Question by:mato01

LVL 31

Expert Comment

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

LVL 31

Accepted Solution

Incorporating the OR, you could have:

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

Thanks
Rob H

0

LVL 50

Expert Comment

Perhaps this

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

regards, barry
0

LVL 31

Expert Comment

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

RH
0

## Featured Post

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.