简体   繁体   中英

With Excel Conditional Formatting - Want to Highlight Cells in a range that match any from another range of cells

Sheet One has 5 cells in a row with numbers. (A2:F2)

Sheet Two also has 5 cells in a row with numbers. (A3:F3)

I'd like to highlight sheet one's cells yellow every time that sheet two has a matching number entered. (There will be more rows of data added to each sheet, but I am using the first row only, to keep it simple.

It works with creating a CF equals to, but I need something that applies to a range of data, from a range of data to make this less tedious. Thank you for any tips!

I am using conditional formatting. I have tried Vlookup, Match, and Countif, but I am new to this type of formatting.

(Sheet two's numbers can be placed in a list (column), instead of a row, if that matters)

I'd suggest using COUNTIF :

=COUNTIF(Sheet2!$A:$F,A2)>0

Snapshot of Sheet1 and the Conditional Formatting:

在此处输入图片说明

Snapshot of Sheet2:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM