bethi

New Member
Joined
Jul 27, 2017
Messages
4
Hello - I am looking to conditionally format, in a pivot table, a cell based on whether it is more or less than the month before. Sounds simple enough, right? Wrong (at least for me)!


My dataset lists the item in rows, the months in columns, and the sum of quantity in the values.


I want to say, "if the qty of item xyz for February is greater than the qty of xyz for January, color that green." On the reverse side, I want to say "if the qty of item xyz for February is less than the qty of xyz for January, color that red."

ITEMJAN-17 QTYFEB 17 QTYMAR 17 QTYAPR 17 QTY
XYZ24743530
ABC50252015
EFG608890100
HIJ50257550

<tbody>
</tbody>


Thank you in advance for your assistance.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
People alway do this.

What happens if it's equal ?
Based on your logic so far it will won't colour the cell green or yellow.
 
Upvote 0
With ITEM in A1

Select C2:E5

=(C2 > B2)
format as green

=(C2 < B2)
format as yellow

(remove spaces from the above formulas, forum restriction forced me to enter them)

Adjust the cell references based on where you have the table, ie if ITEM is not in A1
 
Last edited:
Upvote 0
Good point! I'm fairly new to the world of conditional formatting, I stumbled upon it by accident, so I am not certain what I would have it do is there is no change. I would welcome any suggestions though:)
 
Upvote 0
Thank you SO much! Your instructions were very easy to follow, and I was able to get it set up in no time.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

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