I need to compare 2 ranges of cells and highlight whatever cells that match in red
- User
I need to compare 2 ranges of cells and highlight whatever cells that match in red
- Assistant
To compare two ranges of cells and highlight the matching cells in red, you can use a combination of conditional formatting and the
COUNTIFfunction in Excel. Here's how you can do it:-
Select the first range of cells that you want to compare.
-
Go to the Home tab and click on Conditional Formatting > New Rule.
-
In the "New Formatting Rule" dialog box, select "Use a formula to determine which cells to format" under "Select a Rule Type".
-
In the "Format values where this formula is true" field, enter the following formula:
=COUNTIF(range2, cell)>0
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.