Conversion date yyyymmdd en dd/mm/yyyy

Solved
Alain -  
 ucef -
Hello,

In a column of dates written in yyyymmdd, I would like to convert the format to dd/mm/yyyy (Excel 2016)

Can someone help me

Thank you in advance

Alain

Configuration: Windows / Chrome 66.0.3359.181

4 réponses

Vaucluse Posted messages 27336 Registration date   Status Contributeur Last intervention   6 453
 
Hello
for a date in A1:
=DATE(LEFT(A1,4),RIGHT(LEFT(A1,6),2),RIGHT(A1,2))
Regards

--
The quality of the response mainly depends on the clarity of the question, thank you!
11
Alain
 
Thank you Vaucluse, this formula works perfectly.
However, if I complicate things, is it possible to get the result in the same cell?
0
Vaucluse Posted messages 27336 Registration date   Status Contributeur Last intervention   6 453
 
No, we can't place both a formula and a value at the same time; otherwise, we would have to go through VBA, and I'll let my friends (who participated here) handle that, it's not in my field.

What is possible:
  • process the field with the formula in a column outside the table
  • copy the resulting field
  • paste it onto the original cells using "special paste value"
  • delete the formula field

best regards
0