Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 在跳过空格时比较列中上一个单元格值的条件格式_Google Sheets_Gs Conditional Formatting - Fatal编程技术网

Google sheets 在跳过空格时比较列中上一个单元格值的条件格式

Google sheets 在跳过空格时比较列中上一个单元格值的条件格式,google-sheets,gs-conditional-formatting,Google Sheets,Gs Conditional Formatting,在Google表单中,我有数值列,我想将数值的减少设置为红色。我使用了一个简单的公式来比较前一个单元格的值,但是我不知道如何获取列中最后输入的值,跳过任何空白单元格 | | A | |---|---------| | 1 | Numbers | |---|---------| | 2 | 100| | 3 | 75| // Red (decrease from 100) | 4 | 90| | 5 | | | 6 |

在Google表单中,我有数值列,我想将数值的减少设置为红色。我使用了一个简单的公式来比较前一个单元格的值,但是我不知道如何获取列中最后输入的值,跳过任何空白单元格

|   |    A    |
|---|---------|
| 1 | Numbers |
|---|---------|
| 2 |      100|
| 3 |       75| // Red (decrease from 100)
| 4 |       90|
| 5 |         |
| 6 |       70| // Red (decrease from 90)
| 7 |       71|
| 8 |         | 
| 9 |       68| // Red (decrease from 71)
|10 |       65| // Red (decrease from 68)

我的A2简单公式:A is=ANDA1,A2请从A2中选择ColumnA,然后选择格式、条件格式…、单元格格式(如果…),自定义公式为enter:

对于格式化样式,选择红色,完成

=and(A2<>"",A2<vlookup(1E+100,A$1:A1,1,1))