+ Reply to Thread
Results 1 to 5 of 5

Text result based on IF Formula

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    200

    Text result based on IF Formula

    I would like to return a text result based on the following but cannot quite get it right

    If H14=0 then I14= “achieved Target”
    If H14<0 then I14= “under target”
    If H14>0 then I14= “over target”

    Thanks in advance

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    In I14, enter:

    =If(H14=0,"achieved Target",if(H14<0,"under target","over target"))
    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.

  3. #3
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    200
    I tried entering a couple of times and it doesnt quite work for the =0 bit. Forgot to say that H14 contains a formula to add the value of others cells, could this be affecting things?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Yes, if the result is not exactly 0, then it won't work...

    you can try perhaps rounding H14 to 0 decimals...

    try: =If(ROUND(H14,0)=0,"achieved Target",if(H14<0,"under target","over target"))

    ...but I am not sure that will give the results you want.. what do you really mean by H14<0 and H14>0... do you mean like 1, 2, -1, -2.. because if you mean 0.01, -0.04, etc... it might not work.
    Last edited by NBVC; 06-25-2008 at 01:53 PM.

  5. #5
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    200
    works fine - thanks

+ 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