Convert date to text

G

Gene Augustin

I have dates like 02/08/08 in column B

I want to convert them to a text like D02/08/08
Everything I have tried gives an error or D38295 or the like where the
number part is the serial date.
 
S

Shane Devenshire

Hi,

Well I think you've seen the solution. However, if you are ok with a
non-text solution then

Select the cells and choose Format, Cells, Number tab, Custom and enter the
following on the Type line.

"D"m/d/yyyy
 
R

Rick Rothstein

Here is a way to do it without the concatenation operation shown in the
first 3 responses (note the backslash in front of the D)...

=TEXT(A1,"\Dmm/dd/yy")
 

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