+ Reply to Thread
Results 1 to 8 of 8

If statment

  1. #1
    Registered User
    Join Date
    04-09-2007
    Posts
    56

    If statment

    I am trying to enter the following if statment: =IF((E4>20000)&(F4>0.1999),"Explain:","")

    I need to explain items greater than 20,000 AND 20% for a variance analyisis, but the fomula is not working - any idea what I am going wrong?

    I first tried to make it a condirtital formatting, but that was even harder.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,580
    Set up the formula as follows;

    ==IF(AND(E4>20000, F4>0.1999),"Explain:","")

    When working with "AND" or "OR", they precede the arguements which are separated by commas. Let me know if this works for you.

    ChemistB

  3. #3
    Registered User
    Join Date
    04-09-2007
    Posts
    56
    AWSOME! Works like a charm - great tip!

  4. #4
    Registered User
    Join Date
    04-09-2007
    Posts
    56
    I have one more follow up. The formula above only identifies positive variances - is there anyway to make it +/-?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902
    You mean?

    =IF(AND(ABS(E4)>20000, ABS(F4)>0.1999),"Explain:","")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    04-09-2007
    Posts
    56
    The formula looks correct but doesnt seem to be wroking.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902
    The ABS() function just takes the positive value of whatever is within the brackets...

    How is it not working?

  8. #8
    Registered User
    Join Date
    04-09-2007
    Posts
    56
    Sorry, I copied a space in the formula - working great!

+ 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