简体   繁体   中英

Conditional Formatting based on previous cell value

I'm looking to apply Conditional Formatting to a range of data I have in Excel that will display red if the most recent day of data is below what it was before, and green if it was higher.

Eg Day,Value, Highlight cell colour

  • Day 1 1000
  • Day 2 2000 Green - as it's higher than day 1
  • Day 3 500 Red - as it's lower than day 2
  • Day 4 6000 Green
  • Day 5 4000 Red

I want to replicate this for all my data and then ideally be able to count the number of 'runs there are' eg number of red cells together so you can see the number of consecutive days that performance has fallen by.

What formula do I use to achieve both things?

This is for Excel 2007 (hopefully you can adapt as necessary):

SO17419835示例

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