Pivot Table Conditional Formatting

TinaP

Well-known Member
Joined
Jan 26, 2005
Messages
528
Hi all!

I'm working on a project that keeps track of all the cash in a cash drawer. The end user would like all cash drawers with balances over $12000 highlighted. Supervisor drawers, which have drawer numbers ending in "00", should not have any highlighting. I've created pivot tables to display the information.

I've even managed to add the conditional formatting and entered the condition to not format drawers ending in "00". However, to add the special condition for the supervisor's drawer I had to "hard code" the row number.
Code:
=AND(RIGHT(B$7,2)<>"00",B8>12000)
If I keep the hard coding in, the highlighting rule could be compromised due to the flexibility of the pivot table. For instance, if a report filter is added or removed, the row with the drawer numbers in it will likely change and therefore the supervisor's drawer will not be found.

Here is a very small example of my sheet, but it shows all pertinent info:

Excel 2010
ABCDE
1
2BRANCH NAMEFarmersvilleMAXIMUM ALLOWED600,000
3MONTHSJun
4DAY OF WEEK(All)
5
6END AMT
7100101102103
81-Jun303,076.0012,423.429,876.222,382.81
92-Jun330,476.009,179.346,896.182,382.81
103-Jun296,701.007,399.806,896.182,382.81
116-Jun321,458.0012,254.169,009.872,382.81
127-Jun273,678.0011,578.197,904.772,382.81
PIVOT

Is there anything that can be done to resolve this?

Excel 2010
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Is the row that has the supervisors codes (100, 101, 102 ...) always immediately below the row that contains the text "END AMT" in column A?
If so, maybe this
=AND(RIGHT(INDEX(B:B,MATCH("END AMT",$A:$A,0)+1),2)<>"00",B8>12000)

Hope this helps

M.
 
Upvote 0
I believe "END AMT" will always be there, but things change. Your formula works great, though. I'm sure going forward, I'll be able to modify it according to whatever the end users request.

Thank you for all your help.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,432
Members
448,961
Latest member
nzskater

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