Share via

nested if and isblank

Anonymous
2014-06-02T17:55:13+00:00

I am trying to check for the presence of blank cells in a row of 4 cells. If all of the cells are blank, I want it to return a value.

I have tried this statement:

=IF(isblank(c2) and IF(isblank(d2) and IF(isblank(e2) and IF(isblank(f2),"Pool"," "))))

I am running into errors in the statement. What am I doing wrong? IF all the cells c2:f2 are blank, I want to enter "pool" in G2, otherwise, I want to leave it blank

I'd appreciate any suggestions!

thanks,

Beth K

Microsoft 365 and Office | Excel | For home | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-06-02T18:50:20+00:00

The correct syntax is:

=if(and(isblank(c2),isblank(d2),isblank(e2),isblank(f2)),"Pool"," ")

You also need to realize that setting the cell to a single space as this formula does will cause Isblank to fail. It's not blank, but a space.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2014-06-02T19:49:26+00:00

    Thanks a bunch - especially for the quick response. I did want it to track blanks cells. Very cool!

    Beth K

    Was this answer helpful?

    0 comments No comments