根据是否包含数据更改Excel单元格颜色

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了根据是否包含数据更改Excel单元格颜色相关的知识,希望对你有一定的参考价值。

This formula will automatically change a cell's background color if there is data in it. You can also change the formula to only fill cells where there is no data.
  1. Select your cells you want to apply this formula to. E.g. - All of column B
  2. Select Conditional Formatting.
  3. Choose New Rule - Use a formula to determine which cells to format
  4. To change only cells with data enter the following:
  5. =B1<>""
  6. To only change those cells without data enter the following
  7. =B1=""
  8. Select the format button and apply whatever format you would like to the cell - fill, font, border...
  9. Click OK to apply.

以上是关于根据是否包含数据更改Excel单元格颜色的主要内容,如果未能解决你的问题,请参考以下文章

根据值更改单元格颜色

如何根据单元格颜色获取 UDF 以在 Excel 中自动更新

在excel中怎么快速批量删除单元格背景颜色为红色的数据?

EXCEL如何根据条件自动设置单元格颜色

delphi 更改stringgrid单元格所在行的字体颜色

数据表:根据值更改单元格颜色