Blank cells

G

Guest

I have a list with some blank cells, say in column A. I have created an IF
function to show a text message if the cell is empty. I have done it using
the ISBLANK function and also using >=0. See the next examples:
=IF(ISBLANK(A1),â€Chaseâ€,â€â€)
=IF(A1<=0,â€Chaseâ€,â€â€)

Is there a problem I might encounter if I use the <=0 condition? Is one
solution preferable for any reason to the other?

I’ve formatted the cells in column A to Text to see if that effects it and
it doesn’t seem to.
 
V

vezerid

I should say neither is a good test. If cell A1 returns "" through a
formula then

=ISBLANK(A1)

will return FALSE. Similarly, it is not a good idea to play with
numeric values unless your data set has some specific characteristics.
Just use:

=IF(A1="","Chase","")

HTH
Kostis Vezerides
 
R

Rick Rothstein \(MVP - VB\)

Just use:
=IF(A1="","Chase","")

And possibly

=IF(TRIM(A1)="","Chase","")

if there is any chance someone could accidentally place one or more blank
spaces in the cell.

Rick
 
G

Guest

Thank you - much simpler too!

vezerid said:
I should say neither is a good test. If cell A1 returns "" through a
formula then

=ISBLANK(A1)

will return FALSE. Similarly, it is not a good idea to play with
numeric values unless your data set has some specific characteristics.
Just use:

=IF(A1="","Chase","")

HTH
Kostis Vezerides
 
G

Guest

Thank you

Rick Rothstein (MVP - VB) said:
And possibly

=IF(TRIM(A1)="","Chase","")

if there is any chance someone could accidentally place one or more blank
spaces in the cell.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top