Menu

ISBLANK is FALSE on a cell that looks empty (and IFBLANK doesn't exist) in Google Sheets
πŸ“°

ISBLANK is FALSE on a cell that looks empty (and IFBLANK doesn't exist) in Google Sheets

DEV Community: productivityΒ·SheetErrorΒ·about 1 month ago
#NsgNLWnh
#devtoproductivity#devto#dev#name#empty
Long article (347 words) β€” no AI summary yet.
Reading 0:00
15s threshold

ISBLANK(B3) returns FALSE , but B3 looks completely empty. And =IFBLANK(B3,"none") throws #NAME? . Both are expected behavior. Here's what each "empty" test actually checks.

Three cells that all look empty

B =ISBLANK(B) =B="" =LEN(B)

2 (never touched) TRUE TRUE 0

3 ="" FALSE TRUE 0

4 a single space FALSE FALSE 1

ISBLANK asks "is this cell truly empty?" ="" returns an empty text string , which counts as content, so ISBLANK is FALSE.

="" asks "does this look like empty text?" TRUE for untouched cells and "" , FALSE for 0 and for a space.

A space fails both tests. LEN gives it away. TRIM(B4)="" is TRUE. (A non-breaking space, CHAR(160) , needs SUBSTITUTE.)

IFBLANK is not a Sheets function

IFBLANK sounds like it should exist next to IFNA and IFERROR, but neither Sheets nor Excel has it, so #NAME? is correct.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.