need help with format

J

joe@malvern

need some help. formated a data entry date range 00/00/00 and when I use the
MONTH function it returns 1-12 correctly through the range except if a cell
in the range is blank then it returns a 1. how do I get it to return a blank
for blank cells?

thanks in advance
 
D

Dave Peterson

I'm not sure what you really have in that cell, but maybe:

If the cell (A1) is empty:
=if(a1="","",month(a1))

If the cell really contains 00/00/00 (actually 00/00/1900)
=if(a1=0,"",month(a1))
 

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

Similar Threads

formatting 2
formatting 6
exel and times 2
Need help 3
Please help! date showing as 1900/01/00 2
Vlookup help required 5
Payment calculation 1
Sum number range ignoring numbers formatted as text 0

Top