简体   繁体   中英

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. 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 . I am struggling to reference the current cell.

You can use the Less Then and the Equal conditional formatting like you can see below.

There is no need for a custom rules.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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