Conditionally format rows based on unique column value

JansiJansi

New Member
Joined
Jun 22, 2022
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi there. I'd like to alternate highlighting on rows depending on the value in column A. If the value in column A is the same for multiple rows, the rows highlight one color. As soon as it's different, it alternates. Here's a visual example:

1714151328304.png


Could someone help with a conditional format formula?

Thank you!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Check this and revert - Here Column C is a Helper Column

Book1
ABC
1XYZAny Value1
2XYZAny Value1
3XYZAny Value1
4XYZAny Value1
5ABCAny Value2
6ABCAny Value2
7ABCAny Value2
8ABCAny Value2
9XYZAny Value3
10XYZAny Value3
11XYZAny Value3
12XYZAny Value3
13ABCAny Value4
14ABCAny Value4
15ABCAny Value4
16ABCAny Value4
Sheet2
Cell Formulas
RangeFormula
C2:C16C2=IF(A2=A1,C1,C1+1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:C16Expression=ISEVEN($C1)textNO
A1:C16Expression=ISODD($C1)textNO
 
Upvote 1
Solution

Forum statistics

Threads
1,215,561
Messages
6,125,533
Members
449,236
Latest member
Afua

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