Conditional Formatting Pivot Table Data

ajwooden32

New Member
Joined
Feb 5, 2024
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Below is an image of my pivot table with the rows between columns D-G filled in manually. I should mention this data extends down pass row 100 already, I'm just providing a small sample.

I would like to automate this process as data is added to or removed from this pivot table.

Is there a way to do this with conditional formatting or another way?

Thanks in advance!!!

1714166194008.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I would like to automate this process as data is added to or removed from this pivot table.

Is there a way to do this with conditional formatting or another way?
What exactly you want to achieve is not clear. Can you explain it better...
 
Upvote 0
To shade alternate rows Select Columns D:G and use following function(s) Conditional Format

Odd Rows
Excel Formula:
=ISODD(ROW($D1))

Even Rows
Excel Formula:
=ISEVEN(ROW($D1))

But my thought is Pivot Tables have in-built Formats to do so. Better Try them.
 
Upvote 0
To shade alternate rows Select Columns D:G and use following function(s) Conditional Format

Odd Rows
Excel Formula:
=ISODD(ROW($D1))

Even Rows
Excel Formula:
=ISEVEN(ROW($D1))

But my thought is Pivot Tables have in-built Formats to do so. Better Try them.
An Add on -

I generally add one more condition while Conditional Format as below -

Excel Formula:
=And(D1<>"",ISODD(ROW($D1)))

This way it only shades cells with value in it and with entire column(s) under rule, Conditional Format keeps growing with growing rows. No need to re-address rules over and over again.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
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