+ Reply to Thread
Results 1 to 6 of 6

Change color when value higher but not equal to

  1. #1
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Change color when value higher but not equal to

    I am trying to set up a conditional formatting with below formula

    Please Login or Register  to view this content.
    in Sheet Planning Column Q conditional formatting is set up and is not working

    in Sample Planning sheet Column Q I have converted the cells to values then converted with Text to Columns and then to General and the conditional formatting works
    but unable to do this as I need all the cross references and formulas to stay

    I am not sure what I an doing wrong as I an able to get the code to work but only when the formulas are not there

    when number in Column O is greater than but not the same as column Q the cell in Column Q will change to green
    I have also added in a Cell contains a blank Value to not change to green

    Any help would be great



    JustinwB

  2. #2
    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,970

    Re: Change color when value higher but not equal to

    Try this:

    =AND(O3>VALUE(Q3), $Q3<>"")
    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.

  3. #3
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Re: Change color when value higher but not equal to

    Good afternoon AliGW

    Thank you for your help
    I was not sure what was causing the problem adding in VALUE as above worked great

    JustinwB

  4. #4
    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,970

    Re: Change color when value higher but not equal to

    The problem is that column Q contains text, so you have to turn it into a number using VALUE, otherwise Excel cannot compute.

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Change color when value higher but not equal to

    You have an &"" that does not seem to belong in your formula.
    ---
    2022-07-16_5-36-49.jpg

  6. #6
    Forum Contributor
    Join Date
    09-24-2017
    Location
    Vic Australia
    MS-Off Ver
    Office 365 Apps for enterprise
    Posts
    147

    Re: Change color when value higher but not equal to

    Good afternoon davesexcel

    I have added &"" to the end of the formula as this runs down the page by 200 cells
    I did not want 0 to be shown when no value was in the other cell

    The extra &"" must of been placed there by mistake in the other column as it did not show an error
    I have not removed it yet

    I just checked &"" was added before I added =IFERROR at the start which then made &"" not needed

    Thanks for your help

    JustinwB
    Last edited by justinwb; 07-16-2022 at 11:03 PM.

+ 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. Need vba code to color cells and change color if not equal as text from cell
    By FvdF in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2020, 08:45 AM
  2. [SOLVED] If result is Equal or Higher then Rangement in Round Robin
    By Henrik-Chr in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-27-2020, 09:09 AM
  3. Replies: 4
    Last Post: 03-18-2019, 02:34 PM
  4. Replies: 11
    Last Post: 01-02-2015, 09:21 PM
  5. [SOLVED] closest or nearest value (higher or equal)
    By vysa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-09-2014, 02:44 PM
  6. [SOLVED] Equal or higher numbers selection function display
    By Khaldon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 06:55 AM
  7. [SOLVED] Help please with Look function of equal or higher value
    By Khaldon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 02:26 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