Conditionally formatting cells if their value equals any value of another column

后端 未结 6 1562
温柔的废话
温柔的废话 2020-12-29 07:50

I have data in the A and B columns. B column\'s data is mostly duplicates of A\'s data, but not always. For example:

6条回答
  •  天涯浪人
    2020-12-29 08:12

    Here is the formula

    create a new rule in conditional formating based on a formula. Use the following formula and apply it to $A:$A

    =NOT(ISERROR(MATCH(A1,$B$1:$B$1000,0)))
    


    enter image description here

    here is the example sheet to download if you encounter problems


    UPDATE
    here is @pnuts's suggestion which works perfect as well:

    =MATCH(A1,B:B,0)>0
    


提交回复
热议问题