Conditonal format pivot table based on comparing two values

Seabee1

New Member
Joined
Feb 19, 2018
Messages
7
hello, working on a pivot table conditional formatting and need help.
I want to compare each month AVG CPH to previous month and if greater format green and less format red.
for example in February NTX cph was higher than January so that would be green and WTX in February is lower than January so that should be red. any help for this would be appreciated. thank you.
MONTH Values
JanuaryJanuaryFebruaryFebruaryMarchMarchAprilAprilTotal AVG Efficiency
MUAVG EfficiencyAVG CPHAVG EfficiencyAVG CPHAVG EfficiencyAVG CPHAVG EfficiencyAVG CPH
NTX114.45%190.22124.20%328.70121.41%207.40115.20%192.59118.86%
OKMU 58.44%91.2958.44%
SCTX104.55%164.50104.87%165.23105.13%194.94102.55%161.38104.30%
SETX160.28%258.37154.81%275.32100.10%170.19175.05%276.24146.93%
WTX101.08%163.76100.71%163.1497.48%161.2790.49%147.6897.49%
Grand Total125.21%202.30126.16%241.89105.94%183.58123.78%198.16120.08%
<colgroup><col width="92" style="width: 69pt; mso-width-source: userset; mso-width-alt: 3364;"> <col width="136" style="width: 102pt; mso-width-source: userset; mso-width-alt: 4973;" span="8"> <col width="137" style="width: 103pt; mso-width-source: userset; mso-width-alt: 5010;"> <tbody> </tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
A
B
C
D
E
F
G
H
I
J
K
1
MONTHValues
2
JanuaryJanuaryFebruaryFebruaryMarchMarchAprilAprilTotal AVG Efficiency
3
MUAVG EfficiencyAVG CPHAVG EfficiencyAVG CPHAVG EfficiencyAVG CPHAVG EfficiencyAVG CPH
4
NTX
114.45%​
190.22​
124.20%​
328.7​
121.41%​
207.4​
115.20%​
192.59​
118.86%​
5
OKMU
58.44%​
91.29​
58.44%​
6
SCTX
104.55%​
164.5​
104.87%​
165.23​
105.13%​
194.94​
102.55%​
161.38​
104.30%​
7
SETX
160.28%​
258.37​
154.81%​
275.32​
100.10%​
170.19​
175.05%​
276.24​
146.93%​
8
WTX
101.08%​
163.76​
100.71%​
163.14​
97.48%​
161.27​
90.49%​
147.68​
97.49%​
9
Grand Total
125.21%​
202.3​
126.16%​
241.89​
105.94%​
183.58​
123.78%​
198.16​
120.08%​
10
Sheet: Sheet25


Green conditional formatting formula applied to cell range D4:I9:
=B4<d4[ code]<d4
less than sign D4
Red conditional formatting formula applied to cell range D4:I9:
=B4>D4 </d4[>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,558
Latest member
aivin

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