+ Reply to Thread
Results 1 to 10 of 10

highlight matches with vlookup

  1. #1
    Registered User
    Join Date
    06-15-2022
    Location
    new jersey
    MS-Off Ver
    2205
    Posts
    7

    highlight matches with vlookup

    I'm trying to highlight with conditional formatting the dates in column B that don't match by looking up names in column A in a different tab.

    heres whats in sheet1:

    column a column b
    josh 2/10/2022
    mark 2/11/2022
    jane 2/15/2022
    william 2/13/2022
    mike 2/14/2022
    sam 2/11/2022

    this is sheets2:

    column a column b
    josh 2/10/2022
    mark 2/11/2022
    jane 2/12/2022
    william 2/13/2022
    mike 2/14/2022
    sam 2/15/2022

    Thanks!
    Attached Files Attached Files
    Last edited by LAZARSPERO; 07-26-2022 at 11:25 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: highlight matches with vlookup

    This assumes you have headers, if you dont have a header then start with =VLOOKUP($A1,Sheet2!$A:$B,2,FALSE)=$B1 otherwise it would be starting with row 2
    Please Login or Register  to view this content.
    Any time you are attempting to figure out the logic of conditional formatting, work on the sheet. Figure out the formula that always comes to TRUE for any logic that you are attempting to utilize. Once you have it resulting in TRUE as desired then take that and apply it to a rule in conditional formatting over the range you wish it to evaluate.
    -If you think you are done, Start over - ELeGault

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: highlight matches with vlookup

    This Conditional Formatting formula should help. Assumes data on both sheets are in A1:B_, so adjust the formula as needed. Select your date cells on Sheet1 first, of course.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-15-2022
    Location
    new jersey
    MS-Off Ver
    2205
    Posts
    7

    Re: highlight matches with vlookup

    Can i use that formula in conditional formatting?

  5. #5
    Registered User
    Join Date
    06-15-2022
    Location
    new jersey
    MS-Off Ver
    2205
    Posts
    7

    Re: highlight matches with vlookup

    Amazing I see the names highlighted, How Would I adjust that to see the dates highlighted instead?

  6. #6
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: highlight matches with vlookup

    Its based on your applied to range, if you want only the dates to highlight then when you setup the rule - the "Applies to Range" should be just the date column. Formula stays the same... also my bad above I had it highlighting matching dates rather than the NON matching dates...

    flip the = to the <> which is to say is not equal like Paul has done

  7. #7
    Registered User
    Join Date
    06-15-2022
    Location
    new jersey
    MS-Off Ver
    2205
    Posts
    7

    Re: highlight matches with vlookup

    Thanks so much for your help!!!

  8. #8
    Registered User
    Join Date
    06-15-2022
    Location
    new jersey
    MS-Off Ver
    2205
    Posts
    7

    Re: highlight matches with vlookup

    I would also like to highlight a row that appears on sheet2 that wasn't on sheet1 is that possible?

  9. #9
    Registered User
    Join Date
    06-15-2022
    Location
    new jersey
    MS-Off Ver
    2205
    Posts
    7

    Re: highlight matches with vlookup

    i used this =$C:$C<>VLOOKUP($C1,july20!C:D,1,0) but that's highlighting the data that is found on both tabs, i'm trying the opposite.

  10. #10
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: highlight matches with vlookup

    You don't put "=$C:$C<>.....", just one cell reference, the first in the list.

    So select C1:Dxx (e.g. C1:D100) then open the Conditional Formatting > New Rule > Use a formula... > type the formula =$C1<>VLOOKUP($C1,july20!$C:$D,2,0)
    Then click Format and format as you wish and click OK a few times.

+ 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. Is it possible to highlight number matches?
    By Astralogic in forum Excel General
    Replies: 4
    Last Post: 11-27-2017, 09:41 AM
  2. Formula To Check & Highlight Matches
    By rahul_ferns76 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2017, 09:51 AM
  3. [SOLVED] I am wanting to highlight a row if it matches another row in the sheet
    By savage16 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-30-2014, 10:25 PM
  4. Highlight column matches
    By joeyga in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-03-2013, 11:11 PM
  5. Highlight rows if A matches but B is different
    By SpeedyOne18 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-07-2013, 08:05 PM
  6. [SOLVED] Compare two Worksheets and Highlight Matches
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-20-2012, 12:20 PM
  7. compare lists, highlight matches
    By trixxnixon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2009, 11:30 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