Conditional format within pivot table

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,065
Office Version
  1. 365
Platform
  1. Windows
Hi all. I wish to apply to different conditional formats to the one pivot table. First one operates only on the first data column and the second works on all subsequent data columns.

My data is plotting spend over a year for different offices. a single office may have multiple months of spend. The conditional format is to identify only the first month for each office.

For example,

Ascot has spend in July, Aug, and September but Morayfield only has spend in October. Another store, Ashfield, has spend in August and then again in November. I want the first month of recorded spend to be highlighted.

1739166768148.png

When I have used this method before, the spend data was calculated alongside of the pivot table., not within it. Two different conditional formats were used. The first was on the first column, July. for the whole column, if there was a value in that column greater than zero, fill that cell with RED.

Then from Aug (E) column to the June (N) column (Australian Fin Year is July to June):

IF(AND(SUM($E6:E6)=0,F6<>0),1,0) which tests column E (July) and F (Aug). If E =0 and F <> 0, apply 1. This would then be filled red and indicates that the first value for that office is in August

so how do i get both conditional formats into the pivot table and able to be refreshed as the data set improves.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I can't see your columns or rows, but why not something like
Excel Formula:
=AND(E6<>0,COUNT($E6:E6)=1)

@Sam_D_Ben
I'm pretty sure you meant =AND(E6>0,SUM($E6:E6)=E6) otherwise everything > 0 would be highlighted.

.. but even with this change it would fail with data like this

25 02 10.xlsm
DEFGH
5JulyAugustSeptemberOctober
6Ascot332546566
7other45677564
8wdawefqw-5510
First 2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E6:H8Expression=AND(E6>0,SUM($E6:E6)=E6)textNO
 
Upvote 0
Solution
Yeah! My bad
 
Last edited:
Upvote 0
Thank you both. Peter, your solution works perfectly. like always. sorry about the missing image of my data. That's the second time the pic has not uploaded properly. I can see it here in the original post, exactly where i put it. So, it must be stored in a cached version or something technical like that. I'l try something different next time.
 
Upvote 0

Forum statistics

Threads
1,226,498
Messages
6,191,376
Members
453,655
Latest member
lasvegasbuffet

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