+ Reply to Thread
Results 1 to 5 of 5

Need Help with nested if statement

  1. #1
    Registered User
    Join Date
    04-07-2005
    Posts
    19

    Need Help with nested if statement

    I would like some help with a nested If function. I need a formula that can help me do the following:
    If the value in cell S2=0, then say No Opportunities
    If the values in G2 or H2 =0.00%, then say No Goal
    If V2>G2, Goal Met, if V2<G2, Not Met
    If W2>H2, Goal Met, if W2<H2, Not Met

    Is this possible with a nested IF function and, if so, what would the formula look like?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need Help with nested if statement

    =IF(S2=0,"No Opportunities",IF(OR(G2=0,H2=0),"No Goal",IF(OR(V2>G2,W2>H2),"Goal Met",IF(OR(V2<G2,W2<H2),"Not Met",""))))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  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
    53,049

    Re: Need Help with nested if statement

    it would start off something like this...

    =if(S2=0,"No Opp",if(or(G2=0,h2=0),"No Goal",if(V2>G2,"Met","Not Met............
    but you have left out a lot of options, such as...
    what to do is S2<>0
    what to do if G2 or H2 <>0
    etc
    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
    Registered User
    Join Date
    04-07-2005
    Posts
    19

    Re: Need Help with nested if statement

    Thank you so very much for this help!!!! This gets me very close to where I need to be and it's not 100% only because I realized I didn't make everything perfectly clear. It's working except in some instances it is returning No Goal because one of the goal columns may equal zero. If there is a goal for group 1 (a value greater than 0,00% in G2) then I need that value compared to the value in V2, regardless if there is a goal in H2. The reverse is also true. I provided an example that will hopefully make this clear. So, if the value in G2 is 0.00%, then there is No Goal for Group 1, if it is greater than 0.00%, then it should be compared to the value in V2, if V2>G2, Goal Met (for group 1), if V2<G2, Goal Not Met. At the same time, if the value in H2 is 0.00%, then there is No Goal for Group 2, if it is greater than 0.00%, then it should be compared to the value in W2, If W2>H2, Goal Met, if W2<H2, Not Met. I am so very sorry this wasn't clear the first time and so VERY appreciative of the help!!!!!!
    placements example.jpg

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need Help with nested if statement

    Ok..maybe this??

    For group 1
    =IF(S2=0,"No Opportunities",IF(G2=0,"No Goal",IF(V2>G2,"Goal Met",IF(V2<G2,"Not Met",""))))

    For group 2
    =IF(S2=0,"No Opportunities",IF(H2=0,"No Goal",IF(W2>H2,"Goal Met",IF(W2<H2,"Not Met",""))))

+ 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. [SOLVED] Nested IF Statement
    By frogz2564 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-24-2013, 01:48 AM
  2. [SOLVED] Nested If Statement - ISBLANK and ISNA in same statement?
    By Janc in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-23-2013, 09:00 AM
  3. Nested IF statement
    By DON_BLACK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-19-2013, 09:21 AM
  4. [SOLVED] nested if then else statement
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2013, 08:21 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