Complex Conditional formatting

Benbenken

New Member
Joined
Aug 10, 2022
Messages
3
Office Version
  1. 2010
Platform
  1. Windows
  2. Web
I have a conditional formatting set that if the value of a cell in H is <30 the row is red.
I would like to make it that if a cell in A is red, than all duplicate values of that red cell in A and its row are also red. What would be the formula to do this if there is one?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
@Benbenken Welcome.

With range edited to suit, maybe like below.

MrExcelAug.xlsx
ABCDEFGHIJ
1
2XX44
3aa32
4cc32
5bb32
6XX32
7gg32
8gg32
9qw32
10qw32
11qw32
12qqqq28
13qw32
14qw32
15XX29
16XX32
17XX32
18XX32
19XX32
20ac44
21jjjjjj44
22jjjjjj3
23ac44
24
25
26
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
2:999Expression=COUNTIFS($A$2:$A$999,"<>""",$A$2:$A$999,$A2,$H$2:$H$999,"<30")>0textNO


Hope that helps.
 
Upvote 0
@Benbenken Welcome.

With range edited to suit, maybe like below.

MrExcelAug.xlsx
ABCDEFGHIJ
1
2XX44
3aa32
4cc32
5bb32
6XX32
7gg32
8gg32
9qw32
10qw32
11qw32
12qqqq28
13qw32
14qw32
15XX29
16XX32
17XX32
18XX32
19XX32
20ac44
21jjjjjj44
22jjjjjj3
23ac44
24
25
26
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
2:999Expression=COUNTIFS($A$2:$A$999,"<>""",$A$2:$A$999,$A2,$H$2:$H$999,"<30")>0textNO


Hope that helps.
Yes, but I would like it to change even if the value of the H cell is >30 if there is a duplicate in A where that row is <30
Similar to the pic below
 

Attachments

  • Book1.PNG
    Book1.PNG
    36.4 KB · Views: 5
Upvote 0
Surely, that is exactly what my suggestion is doing?

MrExcelAug.xlsx
ABCDEFGH
1
2XX54
3GG180
4jj5
5FFF60
6PPP122
7XX76
8XX54
9GG95
10GG159
11FFF62
12jj78
13jj19
14XX14
15PPP31
16GG85
17
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
2:999Expression=COUNTIFS($A$2:$A$999,"<>""",$A$2:$A$999,$A2,$H$2:$H$999,"<30")>0textNO
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,517
Members
448,968
Latest member
Ajax40

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