+ Reply to Thread
Results 1 to 4 of 4

Issue with nested IF statement

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Issue with nested IF statement

    I am creating a decision tool using IF statements. If cell L24 states either "ASU" or "ASU & Life" and Cell H39 states "Unemployed" I require the cell to produce a negative value ("Not OK"), if this criteria isn't produced then I need a positive value to be produced ("OK").

    I am creating the formula in a seperate sheet of the same worksheet, the Cells I refer to are in the sheet named "Form".

    =IF(Form!H39="Unemployed",AND(OR(Form!L24="ASU","ASU & Life"),"Not OK","OK"))

    I have the above so far but keep getting either FALSE or a #Value result. I have tried changing the AND/OR around but I can't get the dual criteria in L24 to work.

    Any help would be greatly appreciated

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Issue with nested IF statement

    =IF(AND(H39="Unemployed",OR(L24="ASU",L24="ASU & Life")),"Not OK","OK")

  3. #3
    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,926

    Re: Issue with nested IF statement

    Hi amd welcome to the forum

    if you have only either "ASU" or"ASU & Life", then you could use a shorter versiojn like this...

    =IF(AND(H39="Unemployed",L24="ASU"&"*"),"Not OK","OK")
    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

  4. #4
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Issue with nested IF statement

    Thanks Majosum,

    That works perfectly. I was soo close

    Thanks for the tip FDibbins, I'll keep that in mind next time however in this instance there are other options (Life only, Life and Critical Illness etc)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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