Home » excel » excel – Date format English / French

excel – Date format English / French

Posted by: admin May 14, 2020 Leave a comment

Questions:

I have this kinf of date format :

Mon, Nov 19, 2018

And I want it in a french short date format (DD/MM/YYY)
But i can’t resolve it with basic date format with excel.
Any ideas ?

How to&Answers:

You can use MATCH to return the correct month:

=DATE(RIGHT(A1,4),MATCH(TRIM(MID(A1,FIND(" ",A1)+1,3)),{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"},0),MID(A1,FIND("}}}",SUBSTITUTE(A1," ","}}}",2))+1,2))

enter image description here

Answer:

To convert your text into a date, you can use this formula (assuming the date in text format is in cell C15):

=DATE(RIGHT(C15,4),IF(EXACT(MID(C15,6,3),"Jan"),01,IF(EXACT(MID(C15,6,3),"Feb"),02,IF(EXACT(MID(C15,6,3),"Mar"),03,IF(EXACT(MID(C15,6,3),"Apr"),04,IF(EXACT(MID(C15,6,3),"May"),05,IF(EXACT(MID(C15,6,3),"Jun"),06,IF(EXACT(MID(C15,6,3),"Jul"),07,IF(EXACT(MID(C15,6,3),"Aug"),08,IF(EXACT(MID(C15,6,3),"Sep"),09,IF(EXACT(MID(C15,6,3),"Oct"),10,IF(EXACT(MID(C15,6,3),"Nov"),11,IF(EXACT(MID(C15,6,3),"Dec"),12)))))))))))),MID(C15,10,2))

Then you get an Excel date that is easier to work with.