Concatenate and date format

B

Billy

H
Im using the foloowing formula...
=CONCATENATE(YEAR(B55)&MONTH(B55)&DAY(B55)&IF(HOUR(C55)>=12,"P","A")) Where B55 has current date formatted as MM/DD/YYY
How can I get the month(b55) to return 04 rather than

Thanks!
 
D

DDM

Billy,
=CONCATENATE(YEAR(B55)&TEXT(MONTH(B55),"00")&DAY(B55)&IF(HOUR(C55)>=12,"P","
A")).

DDM
"DDM's Microsoft Office Tips and Tricks"
www.ddmcomputing.com

Billy said:
Hi
Im using the foloowing formula....
=CONCATENATE(YEAR(B55)&MONTH(B55)&DAY(B55)&IF(HOUR(C55)>=12,"P","A"))
Where B55 has current date formatted as MM/DD/YYYY
 

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