Conditional formatting: Formula to change cell colour based on their respective columns

atisyam

New Member
Joined
Sep 19, 2018
Messages
37
Hello. In my case I have 2 rows and all columns are affected. The 2 rows are Row 2 and Row 3.What I want is that whenever cell A2 contains "MAN", then cell A3 changes to yellow. Then similarly, whenever cell B2 contains "MAN",then cell B3 changes to yellow. So the cells in row 3 will change colour respective to their alphabetic column from row 2. Therefore, I do not want cell A3 to change yellow if cell B2 contains "MAN".
So is there a formula that I can use for conditional formatting that I type once for the first cell and can be applied to all rows?

Currently, I am doing cell by cell. So I got to cell A3, B3, C3..... and then I type
Code:
=$D$2="MAN"
(this code example is for cell D3).

Hope to get help. Thanks.
 
Last edited:

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
5,146
Hi,

Select A3 and drag across the rest of your range for CF, CF, use formula, and enter

=A2="Man"

Choose Format.
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,108,624
Messages
5,523,964
Members
409,547
Latest member
AW2020

This Week's Hot Topics

Top