Excel merge 3 cells in date format
didinemaurice
-
jj -
jj -
Hello,
I would like to merge several cells containing numbers into one to form a date:
for example, A1 = 18, B1 = 08, C1 = 1969 to produce D1 = 18/08/1969
please note that I need to keep the leading 0s in front of the numbers and the separator /.
I tried with CONCATENATE(A1,"/",B1,"/",C1), but the result does not keep the 0s.
Thank you in advance for your help
Adeline
I would like to merge several cells containing numbers into one to form a date:
for example, A1 = 18, B1 = 08, C1 = 1969 to produce D1 = 18/08/1969
please note that I need to keep the leading 0s in front of the numbers and the separator /.
I tried with CONCATENATE(A1,"/",B1,"/",C1), but the result does not keep the 0s.
Thank you in advance for your help
Adeline
3 answers
-
Hello,
=(CONCATENATE(A1,"/",&B1,"/",&C1))*1
in date format *14/03/2001
or
=(A1&"/"&B1&"/"&C1)*1
in date format *14/03/2001
Best regards. -
Re,
And why not ask the right question directly???
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
You will get a number like 25433, set the desired date format as explained earlier.
eric -
Hello,
You need to create a date in Excel format if you want to work with it properly later.
=DATE(C1;B1;A1)
Then right-click on the cell, 'format cells... / number / date' and there you choose the display format you want. This only changes the display; the value remains the same.
You can also use custom formats like:
ddd dd/mm/yy
or
mmmm yy
etc
In custom format you put: dd/mm/yyyy
eric