Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional Formatting (IF not empty)

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 Windows XP at work. I don't see the same feature as below:

enter image description here

What I have tried so far:

enter image description here

Edit: Figured what was wrong. In my production (actual work Excel), they were filled with white color. It wasn't my Excel file, so I was not aware of this before.

like image 367
George Avatar asked May 13 '13 21:05

George


People also ask

How do you conditional Format if cell is not blank?

If I highlight Cells A1-G10, then use the conditional formatting statement above, =NOT(ISBLANK(A1)), and select a colr for fill, what I would 'expect to happen' is if A1 is blank, no cells would be filled. If A1 has a non-blank value, ALL the cells from A1 through G10 would be highlighted, since A1 is no longer blank.

How do I highlight an entire row if a cell is not blank?

The easiest way to highlight rows with non-blank cells is using Format only cells that contain rule from the New Formatting Rule window of Conditional Formatting. First, select your dataset and go to Home > Conditional Formatting > New Rule. Now, the New Formatting Rule window will be opened.


2 Answers

Does this work for you:

enter image description here

You find this dialog on the Home ribbon, under the Styles group, the Conditional Formatting menu, New rule....

like image 56
Floris Avatar answered Oct 20 '22 08:10

Floris


You can use Conditional formatting with the option "Formula Is". One possible formula is

=NOT(ISBLANK($B1))

enter image description here

Another possible formula is

=$B1<>""

enter image description here

like image 19
teylyn Avatar answered Oct 20 '22 08:10

teylyn