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 a formula. Here's how you can do it:
-
Select the first range of cells that you want to compare.
-
Go to the "Home" tab in the Excel ribbon and click on "Conditional Formatting" in the "Styles" group.
-
From the dropdown menu, choose "New Rule."
-
In the "New Formatting Rule" dialog box, select "Use a formula to determine which cells to format" under the "Select a Rule Type" section.
-
In the "Format values where this formula is true" field, enter the following formula: =COUNTIF(range2, cell)>0 Replace "range2" with the actual range of cells you want to compare against (e.g., 1:10), and "cell" with the first cell of your selected range (e.g., $A1).
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.