Blank cells in Excel

D

Danny

The following formula is in cell F66
=IF(E66<=13,L66,IF(AND(E66>13,E66<18),"",M66))
Thank you to John Moore for this formula. This allows me to place text
stored in cell L66 into cell F66 if the value in cell E66 is <13, and text
stored in cell M66 if the value in E66 is >18. Cell E66 is blank if the value
is between 13 and 18.
I would like to alter this formula so that all of the above does not change,
but if nothing is entered into E66 then cell F66 is also blank. As it stands
now if no value is entered into E66, then F66 defaults to the text from L66.
I saw an ISBLANK function that looked interesting but don’t know how to
incorporate it into this formula without losing what I already have. Thank
you.
Danny
 
D

Dave Peterson

How about:

=IF(E66="","",IF(E66<=13,L66,IF(AND(E66>13,E66<18),"",M66)))

I used
=if(e66="",...
But I could have used:
=if(isblank(e66),...
 
J

JoeU2004

Danny said:
I saw an ISBLANK function that looked interesting but don’t know how to
incorporate it into this formula without losing what I already have.

I would not use ISBLANK(). That is true only if there is no formula and no
value (like "") in the cell. If you want to distinguish between empty and
appearing blank due a null string, ISBLANK is the right choice. But I
suspect you want F66 to be "" if E66 __appears__ blank, be it empty or
because it contains "". In that case:

=if(E66="", "", if(E66<=13, L66, if(E66<18, "", M66)))


----- original message -----
 

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