How do I convert the following text into {dd/mm/yyyy} format, in excel:

Dec 3, 2012 Nov 1, 2012 Oct 2, 2012 Sep 3, 2012 Aug 1, 2012 Jul 2, 2012 Jun 1, 2012 

The expected results should be:-

3/12/2012 {dd/mm/yyyy} 1/11/2012 
5

5 Answers

Try using "Text to columns" functionality to convert "in situ"

Select column of dates then use

Data > Text to columns > Next > Next > under "column data format" choose "Date" > in dropdown select MDY > OK

Now you should have valid dates which you can reformat any way you want, e.g. dd/mm/yyyy

See here

5

You can use Excel's DATEVALUE function to convert each of the date strings to Excel date values, then format the cells as dates.

To format the cells, select them and right-click. Choose "Format cells" on the menu that appears, select Format Cells and choose a date format.

4

Your dates are already in a format that Excel should be able to recognize (MMM DD, YYYY), but sometimes importing data can lead to the cells being formatted as Text.

Here's one way to fix your problem:

  1. Type 0 into a cell and copy it. You may also copy a blank cell.

    enter image description here

  2. Select all the dates in your range. Right-click the cells > Paste Special > Add. Click OK. enter image description here

    Your dates should now look like these:

    enter image description here

  3. With your dates still selected, press Ctrl + F1 (assuming you're on Windows) and then change the Number format to mm/dd/yyyy, dd/mm/yyyy or whichever you prefer.

    enter image description here

You can also try others ways to fix your dates, like:

  • Copy the cells with the text dates and paste them into blank cells using Paste Special > Add.
  • Highlight the cells with the dates, change the number format to m/dd/yyyy and then manually press F2 for each cell. But this is too tedious.
  • As chuff mentioned above, use DATEVALUE.

If you are ok to store date in format like 20120312 Then you can use below formula

=DATE(LEFT(C7;4);MID(C7;5;2);RIGHT(C7;2)) 

Please try below

=TEXT(A1;"dd/mm/yyyy") 
6

if you right click, you need to choose the format cells option, select the Custom option (all the way at the bottom), then in the Type box enter dd/mm/yyyy and click ok

7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy