简体   繁体   English

Excel 用于条件格式化的参考电流单元格

[英]Excel reference current cell for conditional formatting

So here's my problem.所以这是我的问题。 I have a table of the numbers 1 through 100, and another cell (we'll call it A1) that will contain a number between 1 and 100. I would like to use conditional formatting to fill these cells, so if A1 contains the number 20, all of the cells from 1 to 20 will be filled.我有一个数字 1 到 100 的表格,以及另一个包含 1 到 100 之间的数字的单元格(我们称之为 A1)。我想使用条件格式来填充这些单元格,所以如果 A1 包含数字20,从 1 到 20 的所有单元格都将被填充。 I am trying to use conditional formatting in order to achieve this, and would like to use the format painter if possible to make this easier (instead of making a new rule each time).我正在尝试使用条件格式来实现这一点,并且如果可能的话,我想使用格式刷来使这更容易(而不是每次都制定新规则)。 I feel that the best way to accomplish this is to reference the current cell, ie format if CURRENT_CELL <= A1 .我觉得实现这一点的最佳方法是引用当前单元格,即格式 if CURRENT_CELL <= A1 I am struggling to reference the current cell.我正在努力引用当前单元格。

You can use the Less Then and the Equal conditional formatting like you can see below.您可以使用 Less Then 和 Equal 条件格式,如下所示。

There is no need for a custom rules.不需要自定义规则。

在此处输入图像描述 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM