+ Reply to Thread
Results 1 to 4 of 4

Using Multiple "IF" Statements to get Three Different True Values

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    3

    Using Multiple "IF" Statements to get Three Different True Values

    In cell C11 I have my actual earnings, and in D11 I have my budget amounts. I put an If statement together to get three possible true values: Over(budget), Under(budget), or equal. After typing in my formula, I will get return values if C11 is over or under D11 but not if it is equal. Here is my formula =IF((C11<D11),"Under",IF((C11>D11),"Over",IF((C11=D11),"Equal","")))

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Using Multiple "IF" Statements to get Three Different True Values

    hi rehankins, welcome to the forum. your formula seems alright. you can shorten it by removing unnecessary brackets though:
    =IF(C11<D11,"Under",IF(C11>D11,"Over",IF(C11=D11,"Equal","")))

    and since there is only a possibility of 3 scenarios, and if scenario is not under of over, it must be "Equal". so it can be further shorten to:
    =IF(C11<D11,"Under",IF(C11>D11,"Over","Equal"))

    not actually sure what you need, but hope to have helped

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-14-2013
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using Multiple "IF" Statements to get Three Different True Values

    Thank you for the reply, benishiryo. Your answer helped simplify my formula, but it seems as if it is not picking up the "Equal". When I set the two cells equal to each other, it still states the value "Over."

  4. #4
    Registered User
    Join Date
    01-14-2013
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using Multiple "IF" Statements to get Three Different True Values

    Please check the formula in cell E11.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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