+ Reply to Thread
Results 1 to 10 of 10

If function with Three Possible Outcomes

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    If function with Three Possible Outcomes

    I seem to be stumped on what should be an easy formula. I need an if function that will come back with the following:

    G7>0 = "Over Budget"
    G7<0 = "Under Budget"
    G7=0 = blank

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: If function with Three Possible Outcomes

    May be:
    =IF(G7=0,"",IF(G7>0,"Over Budget","Under Budget"))
    Quang PT

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: If function with Three Possible Outcomes

    =IF(G7=0,"",IF(G7>0,"Over","Under")&" Budget"))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If function with Three Possible Outcomes

    Or similarly,

    =CHOOSE(SIGN(G7)+2, "Under Budget","","Over Budget")
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: If function with Three Possible Outcomes

    Opps!
    Can somebody else offer other solution? i.e, with array formula?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If function with Three Possible Outcomes

    ''''^''''1

  7. #7
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: If function with Three Possible Outcomes

    All three of these are still returning "Over Budget" for $0 in G7. I can't figure out why. It should be a simple fix, but it just doesn't seem to want to work.

  8. #8
    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,939

    Re: If function with Three Possible Outcomes

    Test to see if the 0 is in fact a value and not just test looking like a value. Test with =isnumber(cell-ref)...FALSE indicates text. Where are the values coming from?
    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

  9. #9
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: If function with Three Possible Outcomes

    The value in G7 is the result of a formula where the amount spent in a given week is subtracted from the budgeted total for that week. It's in currency and comes from values that fall in exact cents. It works perfectly in an if formula with only two options written as =IF(G7>0,"Under Budget","Over Budget"). The only problem is that when I have a perfect budget to spent match resulting in G7 being $0.00 it tells me "Over Budget". It's not a real long-run problem, but I'm a bit of a perfectionist and it's annoying.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If function with Three Possible Outcomes

    Maybe the answer is not exactly zero.

+ 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] An IF function with 4 outcomes
    By Lija in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2013, 04:34 AM
  2. IF Function multiple possible outcomes?
    By Nomadski in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-11-2013, 05:41 PM
  3. [SOLVED] If function with 3 outcomes. As well as 2nd IF function to factor positive or negitive
    By Danimal615 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2013, 02:36 PM
  4. Help with IF function for 3 outcomes
    By randr in forum Excel General
    Replies: 3
    Last Post: 06-09-2012, 05:48 PM
  5. [SOLVED] IF function with 3 possible outcomes
    By lee_s in forum Excel General
    Replies: 4
    Last Post: 04-09-2012, 12:32 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