Test if a cell is empty
=ISBLANK(value)
| Parameter | Description |
|---|---|
value |
The value to check. |
The ISBLANK function is a simple function to test if a cell is empty or not. If a cell is empty, ISBLANK returns TRUE. If a cell contains any value, I
=ISBLANK(A1) // returns TRUE
If cell A1 contains any value or any formula, the ISBLANK function will return FALSE:
=ISBLANK(A1) // returns false
In the worksheet below, the ISBLANK function is used to test if cells in column B are empty. The formula in cell C5 is:
=ISBLANK(B5)
To reverse the logic and test for cells that are not blank (not empty) you can nest ISBLANK inside the NOT function like this:
=NOT(ISBLANK(A1)) // test not blank
You can see this approach in the worksheet below. The formula in cell C5 is:
=NOT(ISBLANK(B5))
A classic example of the ISBLANK function is to test if a cell is empty and display a custom message if so. The worksheet below contains a list of tas
=IF(ISBLANK(D5),"Open","")