基于先前单元格的条件格式 [英] Conditional Formatting based on previous cell value

查看:171
本文介绍了基于先前单元格的条件格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻求将条件格式应用于Excel中的一系列数据,如果最近一天的数据低于之前的数据,则显示为红色,如果为高,则显示为绿色。

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


  • 1 1000

  • 第2天2000绿色 - 高于第1天

  • 第3天500红色 - 低于第2天

  • 第4天6000绿色

  • 第5天4000红色

  • 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想要复制这个我所有的数据,然后理想地可以计数运行有的数量,例如红色单元格的数量在一起,所以你可以看到性能下降的连续天数。

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?

推荐答案

这是为Excel 2007(希望您可以根据需要进行调整):

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

这篇关于基于先前单元格的条件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆