Explanation

In the example worksheet, column D contains a date when a task is completed.

If the task is not yet complete, the cell in column D will be empty (blank).

The most common way to solve a problem like this is with theIF function.

Using conditional formatting to highlight open tasks

The IF function can return a hard-coded value, a cell reference, or another formula.

In Excel, an empty string will not display anything.

The values returned by the IF function can be customized as needed.

Using conditional formatting to highlight open tasks

There is no practical difference between the formulas, the choice depends on personal preference.

We are not asking Excel if A1 is blank, we are literally counting the characters in A1.

The LEN function will return a non-zero number only when a cell contains actual characters.

Using conditional formatting to highlight open tasks

Using the LEN function this way works for cells containing formulas as well as cells without formulas.

Conditional formatting

Another way to highlight open tasks is to useconditional formatting.

When a date is entered in column D, the formatting will disappear.More examples here.

Using conditional formatting to highlight open tasks

More than one condition can be tested by nesting IF functions.

For example, if A1 contains “apple”, ISBLANK(A1) returns FALSE.

The IF function

How to quickly remove blank rows

Using conditional formatting to highlight open tasks

Excel formula: If cell is not blank

Excel formula: If cell is greater than

Excel formula: Return blank if

Excel IF function

Excel ISBLANK function

Article image

Article image