+ Reply to Thread
Results 1 to 6 of 6

Equal to, less than or more than "IF" formula with coloured outputs.

  1. #1
    Registered User
    Join Date
    04-15-2019
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    3

    Equal to, less than or more than "IF" formula with coloured outputs.

    Hi All

    I wondered whether anybody could help me?

    I currently have an "IF" formula on a spreadsheet that compares two cells and outputs an up arrow or down arrow (Webdings 5 & 6) depending on whether the value has increased or decreased.

    I was wanting to know if it was possible to do something similar but have it so that it outputs an up arrow in green if the number has increased, a amber arrow pointing sideways if the number has stayed the same and a red arrow pointing down if the number has decreased (something like Webdings 4, 5 and 6).

    Many thanks for your help.
    Rhys

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

    Re: Equal to, less than or more than "IF" formula with coloured outputs.

    Select the range to highlight

    Conditional Formatting
    New Rule
    Use a formula to determine...

    Youll need 3 formulas one for each colour.
    Enter each formula where the value is true.
    So if your standard formula is IF(A1>B1...
    just enter =(A1>B1)
    then select which colour you want
    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.

  3. #3
    Registered User
    Join Date
    04-15-2019
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Equal to, less than or more than "IF" formula with coloured outputs.

    Hi

    My formula is =IF(D3>=D13,"5","6")

    if I...

    Conditional Formatting
    New Rule
    Use a formula to determine...

    I insert the formula =(D3>D13) and this let me format it so that the cell turns green but obviously doesn't insert the arrow.

    If I add the ,"5" to the end as I did for formula true in my initial formula (so =(D3>D13,"5") it says error.

    Is there something I am missing?

    Many thanks
    Rhys

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

    Re: Equal to, less than or more than "IF" formula with coloured outputs.

    Conditional formatting formats a cell, it doesnt change the value, just the look
    so =(D3>D13) is correct to change the colour.

    Keep your original formulas
    IF(D3>=D13,5,6)

    I'm assuming webdings 5 and 6 is the arrow up and down.
    i dont know if there is a sideways arrow, youll have to look at webdings to find out and amend your formula if the value stays the same.

  5. #5
    Registered User
    Join Date
    04-15-2019
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Equal to, less than or more than "IF" formula with coloured outputs.

    Ahh ok thanks. I did try that and it didn't seem to work.

    Deleted everything and done it again from scratch and it is working this time.

    Thanks

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,867

    Re: Equal to, less than or more than "IF" formula with coloured outputs.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] SUM of positive values if text is equal to "textA" and "textB" - too few arguments
    By meatychi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2018, 10:45 AM
  2. [SOLVED] Formula to make "word" equal "numeric value"
    By PEDRO728 in forum Excel General
    Replies: 12
    Last Post: 10-03-2018, 12:52 PM
  3. [SOLVED] Delete Rows if a cell does not equal "Finished" or "Complete"
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-27-2013, 12:40 PM
  4. if cell's formula outputs a number than _ else "" question
    By CobertRannon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-02-2013, 02:21 PM
  5. Replies: 4
    Last Post: 07-15-2013, 05:42 AM
  6. [SOLVED] Cell Formula to count time with "Greater Than or Equal to" and "Less Than"
    By chriswhite1982 in forum Excel General
    Replies: 3
    Last Post: 06-16-2013, 12:30 AM
  7. Replies: 1
    Last Post: 04-01-2013, 03:31 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