简体   繁体   中英

Conditional formatting in pivot table

I have a pivot table where the rows are ID numbers and the columns are years and between the two is a numbered value.

I want to use conditional formatting so that if the value in the column before another is greater (ie, I6>H6), then that column will turn green (ie, I6 is green). If there is no value before it leave it blank (ie its the first value in the row, or the only value in the row.

Below is the current conditional formatting I have on the sheet(and yes, the first cell of data is in cell c6, the last is in L1072, the ID number is in column B) 在此处输入图片说明

here is the outcome: 在此处输入图片说明

Here is desired outcome: 在此处输入图片说明

Here is what I got to work.

1) The first formula is there because there is a number in the C column that was turning green, so the first formula made it so that if the number in the cell isnt 0, then for there to be no background color

2)The second formula made it so that if the cells are equal, then they color of the following cell in that row is blank.

3)The 3rd formula as stated above by @BigBen states: AND(B6<>"",B6

4)This formula does the same as above, but opposite (less than so it turns green)

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM