Conditional Formatting - highlight range if cell matches another

Jasesair

Active Member
Joined
Apr 8, 2015
Messages
282
Office Version
  1. 2016
I'm going wrong somewhere, but not too sure where. Conditional Formatting (CF) confuses me!

I'm wanting E10:G13 to highlight if E13 is the same as C3. As such, I've highlighted E10:G13 and in CF, I have entered =E13=$C$3, and of course set the highlight colour. I'm having no luck with this.

Any help would be much appreciated.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You need to change E13 to $E$13

=$E$13=$C$3

if you want all 4 rows to highlight for the condition in E13

But if you want just row 10 - when E10 matches C3 , row 11 when E11 matches c3 etc

if so then
change the formula to
$E10 = $C$3

That fixes the Column and so does not then test F , G
 
Upvote 0
this is if you just want the 1 ROW to match if the row E matches C3

Book1
ABCDEFGH
2
32
4
5
6
7
8
9
10146
11246
12146
13246
14
15
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E10:G13Expression=$E10=$C$3textNO


BUT if you want ALL rows regardless to highlight if ANY value matches C3 in E10,E11,E12 or E13
then a countif should be used
=COUNTIF($E$10:$E$13,$C$3)>0

Book1
ABCDEFGH
2
32
4
5
6
7
8
9
10146
11146
12146
13246
14
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E10:G13Expression=COUNTIF($E$10:$E$13,$C$3)>0textNO
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top