简体   繁体   English

包含文本(不是数字)的单元格的条件格式

[英]Conditional formatting for cell that contain text (not number)

我想应用条件格式来突出显示包含文本(不是数字)的单元格,有没有办法做到这一点?

You might use a Conditional Formatting formula rule of: 您可以使用条件格式公式规则:

=ISTEXT(A1)  

where the cell is non numeric or contains text. 单元格不是数字或包含文本。

For your conditional formatting formula, you can use: =isnumber(0+A1) assuming A1 is your cell that you are testing. 对于条件格式设置公式,您可以使用: =isnumber(0+A1)假设A1是您正在测试的单元格。

The 0+ bit will attempt to add 0 to the contents of A1, which will convert the contents to a number, even if it's a number stored as text. 0+位将尝试向A1的内容添加0,这将把内容转换为数字,即使它是存储为文本的数字。

Use Format Cell Value NOT BETWEEN (Any number range). 使用格式单元格值NOT BETWEEN(任意数字范围)。 Excel will format all the text cells as they're not numbers so do not fall into the value range. Excel将格式化所有文本单元格,因为它们不是数字,因此不会落入值范围。

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

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