+ Reply to Thread
Results 1 to 5 of 5

Greater than and conditions doesnt seem to work

  1. #1
    Registered User
    Join Date
    10-22-2019
    Location
    London
    MS-Off Ver
    365
    Posts
    6

    Greater than and conditions doesnt seem to work

    Hi everyone,

    Apologies in advance if this is a silly question, but i cant seem to get this IF statement to work.

    Example
    I have 4 columns, A-D presented below:

    A B C D
    -30 , -30, 0, 10

    i would like to replace replace the numbers with words via a IF statement.

    for example on column B:
    If column B is greater than Column A than return "Improvement"
    but if
    If column B is greater than Column A and is greater than "0" then return "Recovered"
    but if
    Column B is equal to Column A then return "No Change"

    Is this possible to generate into a IFstatment/ formula please?

    Thanks in advance everyone

    CT

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Greater than and conditions doesnt seem to work

    Assume values are in A2 and B2, this in C2:

    =IF(AND(B2>A2,B2>0),"Recovered",IF(B2>A2,"improvement",IF(B2=A2,"No change","Not defined in the formula?!")))

    (Last bit is because you haven't said what you want if Col B is less than Col A?)


    Ochimus

  3. #3
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Greater than and conditions doesnt seem to work

    =IF(B1=A1,"No Change",IF(B1>A1,IF(B1>0,"Recovered","Improvement"),"ABANDON ALL HOPE!"))

    If col A is also greater than 0, would you still want these results?

  4. #4
    Registered User
    Join Date
    10-22-2019
    Location
    London
    MS-Off Ver
    365
    Posts
    6
    Quote Originally Posted by Ochimus View Post
    Assume values are in A2 and B2, this in C2:

    =IF(AND(B2>A2,B2>0),"Recovered",IF(B2>A2,"improvement",IF(B2=A2,"No change","Not defined in the formula?!")))

    (Last bit is because you haven't said what you want if Col B is less than Col A?)


    Ochimus
    Hi Ochimus,
    Thank you for your formula and prompt response.
    apologies my mistake, if column b is less than column A please return with "monitor closely".

    Thanks again in advance😊

    CT

  5. #5
    Registered User
    Join Date
    10-22-2019
    Location
    London
    MS-Off Ver
    365
    Posts
    6
    Quote Originally Posted by hrlngrv View Post
    =IF(B1=A1,"No Change",IF(B1>A1,IF(B1>0,"Recovered","Improvement"),"ABANDON ALL HOPE!"))

    If col A is also greater than 0, would you still want these results?
    Hi hrlngrv,

    Thank you very much.

    The formula works perfectly.

    Kind regards,

    CT

+ 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. If(OR) forumla doesnt work
    By hdjc in forum Excel General
    Replies: 3
    Last Post: 11-30-2019, 10:16 AM
  2. [SOLVED] iferror formula for copying variables under certain conditions doesnt work
    By kronikjb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2015, 02:48 AM
  3. why doesnt this work
    By cybereyeball in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-02-2012, 10:10 AM
  4. COUNTIF doesnt work!
    By jjj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2005, 10:05 PM
  5. [SOLVED] sum totaling doesnt work
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. sum totaling doesnt work
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] TAB Key doesnt work.
    By Murat D. Hekimoðlu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2005, 07:06 AM

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