Excel Nested If Statement

Posted on 2011-10-18
Last Modified: 2012-08-13
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))
Question by:mato01
    LVL 31

    Expert Comment

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

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

    Rob H
    LVL 31

    Accepted Solution

    Incorporating the OR, you could have:

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

    Rob H

    LVL 50

    Expert Comment

    by:barry houdini
    Perhaps this


    regards, barry
    LVL 31

    Expert Comment

    by:Rob Henson
    Just counted the brackets, lose the one on the end!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    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.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now