Conditional Formatting based on previous cell value

冷暖自知 提交于 2019-12-25 16:40:06

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/17419835/conditional-formatting-based-on-previous-cell-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!