+ Reply to Thread
Results 1 to 8 of 8

Using MATCH formula for condtional formatting not working

Hybrid View

  1. #1
    Registered User
    Join Date
    05-14-2014
    Location
    Kent, England
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    20

    Using MATCH formula for condtional formatting not working

    Hi all

    Perhaps someone can help me out by telling me what is wrong with my MATCH formula in conditional formatting OR if you think I should be using a different formula (IF) then great.
    We have a list of staff and in one column the sheet shows their current payscale. Another column shows their payscale from last year.
    If they have moved up the payscale I would like the current salary cell to go GREEN, if it has stayed the same it needs to go ORANGE and lower = RED.
    As the salary points are not numeric I created a separate list of the scales in order of lowest to highest and then I put the following in conditional formatting....but its not working. Can you help me out with why?
    The cells values are VLOOKUP results though - would this have an effect?

    =MATCH(B2,scales!$A$2:$A$58,0) (more than)MATCH(A2,scales!$A$2:$A$58,0) select GREEN FILL
    =MATCH(B2,scales!$A$2:$A$58,0) =MATCH(A2,scales!$A$2:$A$58,0) select ORANGE FILL
    =MATCH(B2,scales!$A$2:$A$58,0) (lower than)MATCH(A2,scales!$A$2:$A$58,0) select RED FILL

    I created it in my own spreadsheet to test it, then I went to my boss's spreadsheet which has various formula's on and tried to replicate it to no avail
    Any help appreciated

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: Using MATCH formula for condtional formatting not working

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-14-2014
    Location
    Kent, England
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    20

    Re: Using MATCH formula for condtional formatting not working

    thanks
    This is the very basic one that works
    Im just going to get a copy of the spreadsheet that I cant do it on and do what you said and send it over to you
    Give me 10-15 mins.
    Attached Files Attached Files

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

    Re: Using MATCH formula for condtional formatting not working

    Formulas look fine to me, do as AliGW said and upload a file so we can take a better look.
    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.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: Using MATCH formula for condtional formatting not working

    Yes, please, because an example that works is not going to help!!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,142

    Re: Using MATCH formula for condtional formatting not working

    Select all the columns starting with row 2 and use:

    =MATCH($B2,Scales!$A$2:$A$58,0) > MATCH($A2,Scales!$A$2:$A$58,0)
    =MATCH($B2,Scales!$A$2:$A$58,0) = MATCH($A2,Scales!$A$2:$A$58,0)
    =MATCH($B2,Scales!$A$2:$A$58,0) < MATCH($A2,Scales!$A$2:$A$58,0)

    Note the absolute column references.
    Attached Files Attached Files
    Last edited by TMS; 07-14-2016 at 04:50 AM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Registered User
    Join Date
    05-14-2014
    Location
    Kent, England
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    20

    Re: Using MATCH formula for condtional formatting not working

    Thanks so much
    Im still trying to get hold of the relevant spreadsheet (boss in a meeting) as soon as I get it, Ill upload a copy (with info removed) and try this above
    Thanks so so much - Ill come back ASAP

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,142

    Re: Using MATCH formula for condtional formatting not working

    You need to change the Applies to Range to:
    Formula: copy to clipboard
    =$B$2:$B$8
    in all cases and make sure your formula references row 2.

    And delete all the repetitions.
    Attached Files Attached Files

+ 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] Condtional formatting with AND not working on on cells
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2015, 11:40 AM
  2. [SOLVED] Condtional Formatting
    By Sarah197862 in forum Excel General
    Replies: 15
    Last Post: 05-21-2014, 08:53 AM
  3. [SOLVED] VBA or Condtional Formatting
    By persais in forum Excel General
    Replies: 9
    Last Post: 08-16-2012, 12:01 PM
  4. Condtional Formatting
    By univerco in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-11-2011, 05:43 PM
  5. condtional formatting
    By keith6292 in forum Excel General
    Replies: 2
    Last Post: 10-28-2009, 12:43 PM
  6. Condtional formatting
    By gandolff in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2009, 08:58 PM
  7. [SOLVED] condtional formatting not working
    By Anzley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2006, 09:10 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