简体   繁体   English

如何根据其值更改单元格的格式和文本。 (条件格式)

[英]How to change the formatting and Text of a cell based on their values. (Conditional Formatting)

Hi I want to change the Fill color and text of the cell based on its value. 嗨,我想根据其值更改单元格的填充颜色和文本。 Let's say I have the below values. 假设我有以下值。

在此处输入图片说明

And I want to make it like this. 我想这样。

在此处输入图片说明

For me the fill colors would be just easy because I will just do the Conditional formatting. 对我来说,填充颜色将很容易,因为我将进行条件格式设置。 However the text is making it hard. 但是,文字使它变得很难。 How can I change the cell values into Text like the example above. 像上面的示例一样,如何将单元格值更改为Text。 Thanks. 谢谢。

Create your conditional formatting rule(s) for the colors then tap ctrl+1 and apply the following custom number format. 创建颜色的条件格式设置规则,然后点按ctrl + 1并应用以下自定义数字格式。

[>10]\G\r\e\at\e\r 1\0;[<=10]L\e\s\s 1\0

You could put that in the CFR along with the color fill change instead if you want to keep all changes in one place. 如果要将所有更改都放在一个位置,可以将其与颜色填充更改一起放在CFR中。

Note that you haven't changed the cells' values. 请注意,您尚未更改单元格的值。 =SUM(Z:Z) still equals 61. =SUM(Z:Z)仍等于61。

在此处输入图片说明

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

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