Conditional Formatting (IF not empty)

后端 未结 6 589
一向
一向 2021-01-04 06:06

How do I conditionally format a cell so if not blank it is grey?

I tried to do \'not equal\', but it didn\'t work.

I am using Windows Office 2003 with Wind

6条回答
  •  無奈伤痛
    2021-01-04 06:34

    This method works for Excel 2016, and calculates on cell value, so can be used on formula arrays (i.e. it will ignore blank cells that contain a formula).

    • Highlight the range.
    • Home > Conditional Formatting > New Rule > Use a Formula.
    • Enter "=LEN(#)>0" (where '#' is the upper-left-most cell in your range).
    • Alter the formatting to suit your preference.

    Note: Len(#)>0 be altered to only select cell values above a certain length.

    Note 2: '#' must not be an absolute reference (i.e. shouldn't contain '$').

提交回复
热议问题