如果单元格上面的值较低,则颜色单元红色 [英] Color cell RED if cell above value is lower

查看:147
本文介绍了如果单元格上面的值较低,则颜色单元红色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要Google电子表格的公式/脚本来执行此操作:



如果当前单元格的值高于make当前单元格背景为红色(如果小于或等于则留下白色),如下所示: = IF((C34> B34),使背景变红,留下背景白色)

我需要这个公式来处理224个单元格(28列和8行) 。条件格式不会工作。

当天将有多达20人查看该文件,只有一个人正在编辑数据。将一个脚本放慢实时电子表格的工作,因为我有一些更复杂的公式,我需要从主工作表计算数据到汇总表。



我在这里和其他论坛搜索,但每个人的公式都是独一无二的!



干杯

解决方案


条件格式不会工作。


可能不是在写入的时候,但它现在可以。



假设你的数组在左上角以B34开始,清除格式并选择B35:AC41和格式,条件格式...,格式化单元格如果... 自定义公式

  = A35> A34 

选择红色填充和完成


I need a formula/script for a Google spreadsheet that will do this:

If the current cell value is higher than the value in the cell above the make the current cell background red (if less than or equal to then leave white), something like this: =IF((C34>B34),"make background red","leave background white") just not sure if this will work or I need a more complex script.

I need this formula to work across 224 cells (28 columns and 8 rows). Conditional formatting wont work.

There will be upto 20 people viewing the document on the day, only one will be editing the data. Will a script slow down the working of the live spreadsheet as I have a few more quite complex formulas I need to calculate the data from the main sheet to a summary sheet.

I have searched here and other forums but everyone's formulas are unique!

Cheers

解决方案

Conditional formatting wont work.

Probably not at the time that was written but it does now.

Assuming your array starts in B34 for its top left, clear formatting and select B35:AC41 and Format, Conditional formatting..., Format cells if... Custom formula is and:

=A35>A34

select red fill and Done.

这篇关于如果单元格上面的值较低,则颜色单元红色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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