简体   繁体   中英

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.

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.

Use Format Cell Value NOT BETWEEN (Any number range). Excel will format all the text cells as they're not numbers so do not fall into the value range.

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