return empty string value if cell is blank

N

Nat

I think I understand how to do this but need help with the exact formula. If
I want to do a date function that adds 6 months to a cell value I have added
teh forumula
=DATE(YEAR(E13),MONTH(E13)+6,DAY(E13)), however some of the cells have no
values in the E column yet, so they bring back erroneous information. Can't
I use some sort of an If("", ) statement to only bring back values for cells
which are not empty??

Thanks in advance,
 
K

Kevin B

The following formula will do the trick:

=IF(ISBLANK(E13),"",DATE(YEAR(E13),MONTH(E13)+6,DAY(E13)))

Hope this helps.
 
N

Nat

That is perfect .. thanks a bunch.

Kevin B said:
The following formula will do the trick:

=IF(ISBLANK(E13),"",DATE(YEAR(E13),MONTH(E13)+6,DAY(E13)))

Hope this helps.
 

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