Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting date values into text 1

Status
Not open for further replies.

ADE6

Programmer
Apr 4, 2004
93
GB
Hi

I am using the date formula below to give me the name of the months found in column M

This works ok apart from the times that there is no date to be found in certain cells in column M and they are blank cells,the formula then returns the result JANUARY.

When cells in column M are blank i would like the formula cell to remain blank and not return any text at all.


=UPPER(TEXT(M2,"MMMM"))


COL M------COL R
Date------MONTH

Jul-02----JULY
BLANK-----JANUARY

Required result
Jul-02----JULY
BLANK-----BLANK

Thanks for the help

Ade






 
=if(M2="","",UPPER(TEXT(M2,"MMMM")))


Rgds, Geoff

Never test the depth of water with both feet

Help us to help you by reading FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top