Forum Discussion

karenlorr_uk's avatar
karenlorr_uk
Copper Contributor
Aug 01, 2021
Solved

Text to date

  I have a number of Excel sheet with dates like this August 1, 2021 July 25, 1995 How would I convert them in to a date value e.g. 01/08/2021 25/07/1995 Thanks
  • HansVogelaar's avatar
    Aug 01, 2021

    karenlorr_uk 

    Option 1:

    • Select the dates.
    • On the Data tab of the ribbon, in the Get & Transform Data group, click From Table/Range.
    • Specify whether your data have a header row or not.
    • Click Close & Load.

    Option 2:

    • Let's say your data begin in A2.
    • In B2, enter the formula
    =DATEVALUE(MID(A2,FIND(" ",A2)+1,FIND(" ",A2,FIND(" ",A2)+1)-FIND(" ",A2)-1)&" "&LEFT(A2,FIND(" ",A2)-1)&"-"&RIGHT(A2,4))
    • Format B2 as a date.
    • Fill down.