Conditional Format Every Other Group of Rows

mnyankee

New Member
Joined
Mar 20, 2023
Messages
11
Office Version
  1. 365
Platform
  1. Windows
In the screenshot below, you can see that every other group of rows is highlighted based on the EID column. This is a small example that I did manually to show what is needed to be done on a 20k row sheet. I have not been able to come up with a formula to use in the conditional formatting. Any help or suggestions will be greatly appreciated.

1679691005841.png
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Will you accept a small helper column as solution?

Book1.xlsm
ABC
1Agent #EID0
212345223311
323456223311
434567223311
545678445662
656789445662
767890667883
878901889774
989012889774
1090123889774
Sheet25
Cell Formulas
RangeFormula
C2:C10C2= IF(B1<>B2,C1+1,C1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B10Expression= ISEVEN($C2)textNO
A2:B10Expression= ISODD($C2)textNO
 
Upvote 0
Will you accept a small helper column as solution?

Book1.xlsm
ABC
1Agent #EID0
212345223311
323456223311
434567223311
545678445662
656789445662
767890667883
878901889774
989012889774
1090123889774
Sheet25
Cell Formulas
RangeFormula
C2:C10C2= IF(B1<>B2,C1+1,C1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B10Expression= ISEVEN($C2)textNO
A2:B10Expression= ISODD($C2)textNO
I may have to accept a helper column even though I was trying to avoid it because it may confuse the end users. Thanks, I appreciate your feedback.
 
Upvote 0
Another option
Fluff.xlsm
AB
1Agent #EID
21234522331
32345622331
43456722331
54567844566
65678944566
76789066788
87890188977
98901288977
109012388977
11
12
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B12Expression=AND($B2<>"",ISODD(ROWS(UNIQUE($B$2:$B2))))textNO
 
Upvote 0
Solution
Another option
Fluff.xlsm
AB
1Agent #EID
21234522331
32345622331
43456722331
54567844566
65678944566
76789066788
87890188977
98901288977
109012388977
11
12
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B12Expression=AND($B2<>"",ISODD(ROWS(UNIQUE($B$2:$B2))))textNO
Works great, thank you!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,839
Members
449,051
Latest member
excelquestion515

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