Conditional Formatting

th259

New Member
Joined
Oct 24, 2023
Messages
35
Office Version
  1. 365
Platform
  1. Windows
If I have a formula to check if value in A1 is repeated again in column A ($A:$A=A2), if it is repeated on A3 and A4 for example, and if the first character on either Q2 or Q3 or Q4 starts with a "3" or a "4" or a "5", then I want all 3 rows to be highlighted. Is that possible? It goes all the way down to A555.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Is this what you mean?
loop50.xlsm
AQ
1A367468
2B120930
3A5789475
4A477832
5C3454
6C1090
7D564
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A7Expression=(COUNTIFS(A:A,A1)>1)*(ISNUMBER(SEARCH(LEFT(Q1,1),"345")))textNO
 
Upvote 0
Or maybe this.
loop50.xlsm
AQ
1A367468
2B120930
3A101
4A102
5C3454
6C1090
7D364
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A7Expression=SUM(--(ISNUMBER(SEARCH(A1,$A$1:$A$7&"3"&$A$1:$A$7&"4"&$A$1:$A$7&"5"))))>1textNO
 
Upvote 0
Or maybe this.
loop50.xlsm
AQ
1A367468
2B120930
3A101
4A102
5C3454
6C1090
7D364
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A7Expression=SUM(--(ISNUMBER(SEARCH(A1,$A$1:$A$7&"3"&$A$1:$A$7&"4"&$A$1:$A$7&"5"))))>1textNO

Thank you for taking a look at the situation.

this one but fill the whole row (data ends on column S), and the conditional formatting needs to go to the bottom of the sheet, in this particular sheet, it goes to row 555.
 
Upvote 0
Highlight the range A1:S555 then insert this into the Conditional Formatting formula.
Excel Formula:
=SUM((COUNTIF($A:$A,$A1)>1)*($A1=$A$1:$A$555)*(ISNUMBER(SEARCH(LEFT($Q$1:$Q$555,1),"345"))))>0
loop50.xlsm
ABCDEFGHIJKLMNOPQRS
1A301
2A203
3B345
4C567
5C123
6D345
7A101
8E200
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:S555Expression=SUM((COUNTIF($A:$A,$A1)>1)*($A1=$A$1:$A$555)*(ISNUMBER(SEARCH(LEFT($Q$1:$Q$555,1),"345"))))>0textYES
 
Upvote 0
Solution
Highlight the range A1:S555 then insert this into the Conditional Formatting formula.
Excel Formula:
=SUM((COUNTIF($A:$A,$A1)>1)*($A1=$A$1:$A$555)*(ISNUMBER(SEARCH(LEFT($Q$1:$Q$555,1),"345"))))>0
loop50.xlsm
ABCDEFGHIJKLMNOPQRS
1A301
2A203
3B345
4C567
5C123
6D345
7A101
8E200
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:S555Expression=SUM((COUNTIF($A:$A,$A1)>1)*($A1=$A$1:$A$555)*(ISNUMBER(SEARCH(LEFT($Q$1:$Q$555,1),"345"))))>0textYES

this is amazing! Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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