Conditional Format Negative Numbers In Pivot Table

walkerl8

Board Regular
Joined
Apr 30, 2013
Messages
201
Hi All

Could anyone explain to me the best way in which to conditional format cells in a pivot table containing negative numbers.

For example, I want to have a red traffic light for if a values is equal to or greater than -1.0 (so -0.8;-0.6 etc) then an amber light for between -1.0 and -2.0 then a green for anything less than -2.0

Thanks for your time
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi

-------------------------------------------------------------------------------------------------------

If you click on the pivot & then use the "select menu" within the "Options Menu"...
Choose..."entire pivot table"
now choose... "Select values" from the same menu option. The pivot now should only be highlighting the values.

Select...
Conditional Formatting
New Rule
Use a formula to determine which cells to format

Enter formula =IF(AND(G7<0,G7>-1),1,0) Format Red

(Substitute cell ref G7 with a value that is within your pivot)

--------------------------------------------------------------------------------------------------------

Do the above twice more however entering the following formulas instead

=IF(AND(G7<=-1,G7>=-2),1,0) Format Amber

=IF(G7<-2,1,0) Format Green


That should keep the formatting within the pivot table
 
Upvote 0

Forum statistics

Threads
1,223,216
Messages
6,170,784
Members
452,353
Latest member
ledowning

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