+ Reply to Thread
Results 1 to 17 of 17

Formula for Highlighting cells that do not match does not work

  1. #1
    Registered User
    Join Date
    05-18-2020
    Location
    Mississippi
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    23

    Formula for Highlighting cells that do not match does not work

    Hello,
    I am trying to use conditional formatting to highlight cells in two rows that do not match. I am using the formula =$p2<>$q2
    This formula works when I test it out by typing the values myself, but not when I paste the rows with the values. I have tried pasting only values, but that did not fix my issue either. I also do not see any difference in formatting etc.

    Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by Johner10; 05-20-2020 at 11:09 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula for Highlighting cells that do not match does not work

    Hi,

    Go to conditional formating-Manage rule-look got " Applies to" and change the reang "$R$2:$S$7"

  3. #3
    Registered User
    Join Date
    05-18-2020
    Location
    Mississippi
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    23

    Re: Formula for Highlighting cells that do not match does not work

    Hello Punnam,
    Thank you for the quick reply, however, that did not work. It is also worth noting that I do not have the conditional formatting rule in the sheet attached that I have been using for columns p and q because it was not working.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula for Highlighting cells that do not match does not work

    Column P is text, whilst column Q is numeric. That's why it's not working.
    Try
    =value($P2)<>$Q2
    Last edited by Fluff13; 05-18-2020 at 01:16 PM.

  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula for Highlighting cells that do not match does not work

    Hi Fluff13,

    I tried it on the sheet provided by Johner but only one column is getting highlighted either column P or Colum Q.

    Punnam

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula for Highlighting cells that do not match does not work

    Oops, missed one of the $ signs, I've corrected the formula

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula for Highlighting cells that do not match does not work

    hi Fluff13,

    But some reason it's not working.

    Punnam
    Attached Files Attached Files
    Last edited by Punnam; 05-18-2020 at 01:27 PM.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula for Highlighting cells that do not match does not work

    That's not the formula I supplied.

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Formula for Highlighting cells that do not match does not work

    Try this.

    1 Select P2:P7.

    2 Goto Conditional Formatting...

    3 Select Use formula to determine which cells to format.

    4 Enter this formula

    =VALUE($P2)<>VALUE($Q2)
    If posting code please use code tags, see here.

  10. #10
    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,954

    Re: Formula for Highlighting cells that do not match does not work

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new, I have provided the link for you this time.)

    https://www.mrexcel.com/board/thread...-work.1134470/
    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.

  11. #11
    Registered User
    Join Date
    05-18-2020
    Location
    Mississippi
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    23

    Re: Formula for Highlighting cells that do not match does not work

    Thank you for the help! That almost works. It is highlighting ones that do not match, but it is also highlighting a lot that do. I wish I could show you the actual sheet I am dealing with, but it has thousands of rows and is too large to upload here.

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula for Highlighting cells that do not match does not work

    I've no idea who you are referring to, but my suggestion works for me.
    If it is not working for you, can you supply another sample book.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-18-2020
    Location
    Mississippi
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    23

    Re: Formula for Highlighting cells that do not match does not work

    I can, but unfortunately I am new to this forum, and do not see how to attach a new spreadsheet. Would you mind enlightening me, please?

  14. #14
    Registered User
    Join Date
    05-18-2020
    Location
    Mississippi
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    23

    Re: Formula for Highlighting cells that do not match does not work

    Never mind, I found it. It is the excel forum 2 doc.

  15. #15
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula for Highlighting cells that do not match does not work

    Thanks for that. The problem is you have applied the CF to the entire column (not a good idea), in which case you need to use P1 & Q1 in the formula.

  16. #16
    Registered User
    Join Date
    05-18-2020
    Location
    Mississippi
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    23

    Re: Formula for Highlighting cells that do not match does not work

    That seems to have worked! Thanks a lot, Fluff!!

  17. #17
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula for Highlighting cells that do not match does not work

    You're welcome & thanks for the feedback.

+ 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] highlighting duplicates if the cells match between multiple columns
    By R.Sloan in forum Excel General
    Replies: 4
    Last Post: 07-25-2017, 08:01 AM
  2. [SOLVED] How to get a VLOOKUP+MATCH formula to return 0 and not N/A when MATCH doesnt work
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2016, 09:40 AM
  3. Replies: 3
    Last Post: 11-29-2015, 09:33 PM
  4. [SOLVED] Comparing values in two columns and highlighting cells that don't match
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-10-2014, 07:51 AM
  5. [SOLVED] Datepicker, textbox & cells date-format does not match for formula to work
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-02-2014, 10:04 AM
  6. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  7. Replies: 6
    Last Post: 08-28-2005, 05:05 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