+ Reply to Thread
Results 1 to 4 of 4

Nested If Statement with errors

  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Nested If Statement with errors

    IfStatement.xlsIfStatement.xls
    Hi Folks,

    How are you? I have attached a spreadsheet so you can see what I'm talking about.

    Basically, the column I and M cannot be 0 and the V column needs to be at least 8. Then, column W will return a result "qualified".

    Here is my formula:
    =IF(I2:I6>0, IF(M2:M6>0), IF(V2:V6>8),"Qualified"," ")))

    Please tell me what is wrong with this formula. I appreciate your help.

    ypurcaro

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Nested If Statement with errors

    you were almost there. with this type of IF statement, you only use a single cell, not a range...
    =IF(I2>0,IF(M2>0,IF(V2>8,"Qualified"," ")))

    But this can be further simplified to...
    =IF(AND(I2>0,M2>0,V2>8),"Qualified"," ")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Nested If Statement with errors

    Thank you very much! It works just fine now!
    Quote Originally Posted by FDibbins View Post
    you were almost there. with this type of IF statement, you only use a single cell, not a range...
    =IF(I2>0,IF(M2>0,IF(V2>8,"Qualified"," ")))

    But this can be further simplified to...
    =IF(AND(I2>0,M2>0,V2>8),"Qualified"," ")

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Nested If Statement with errors

    Happy to help and thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need Help with Nested Errors and Selenium
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2014, 10:02 AM
  2. Nested index formula - need to ignore errors
    By Fursmanm in forum Excel General
    Replies: 0
    Last Post: 09-20-2012, 09:50 AM
  3. Nested AND IF problem Syntax and solve errors
    By mikecymru in forum Excel General
    Replies: 5
    Last Post: 01-04-2012, 11:02 AM
  4. Nested Formula Errors
    By sleepmaps in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2010, 08:13 AM
  5. Replies: 6
    Last Post: 01-14-2009, 06:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1