Forum Discussion

jvass92's avatar
jvass92
Copper Contributor
Aug 19, 2021

Highlight duplicate cell in another sheet

Hello,
I need some assistance if possible please.

Data in sheet 1, col B.
Data in sheet 2, col B.

If data in Sheet 2 Col B is the same as Sheet 1 Col B, highlight the duplicate in sheet 2.

Thanks
  • jvass92 

    Select column B on Sheet2. Cell B1 should be the active cell in the selection.

    On the Home tab of the ribbon, select Conditional Formatting > New Rule...

    Select 'Use a formula to determine which cells to format'.

    Enter the formula

     

    =ISNUMBER(MATCH(B1, 'Sheet 1'!B:B, 0))

     

    Substitute the real name of Sheet 1.

    Click Format...

    Activate the Fill tab.

    Select a highlight color.

    Click OK, then click OK again.

  • jvass92 

    Select column B on Sheet2. Cell B1 should be the active cell in the selection.

    On the Home tab of the ribbon, select Conditional Formatting > New Rule...

    Select 'Use a formula to determine which cells to format'.

    Enter the formula

     

    =ISNUMBER(MATCH(B1, 'Sheet 1'!B:B, 0))

     

    Substitute the real name of Sheet 1.

    Click Format...

    Activate the Fill tab.

    Select a highlight color.

    Click OK, then click OK again.

    • KeppyA's avatar
      KeppyA
      Copper Contributor

      HansVogelaar This worked perfect, even though numerous other sites said it was impossible. THANK YOU!

    • Kcsurk's avatar
      Kcsurk
      Copper Contributor

      HansVogelaar is there a way to highlight only if it matches two columns?

       

      Currently working on an excel tool for work (logistics), and am trying to get our internal list of preferred origin zip & destination zip to auto-highlight on bid data so it is easy for us to identify our focus. 

       

      I have two conditional formatting rules set up, but I would like to combine them into one rule and only highlight if both origin & destination match our master file.

       

      Ideally, I'd be able to highlight any zip codes that are within a given radius of our internal data. Let me know if you have any work arounds or ideas!

Resources