Forum Discussion

MrKasifs's avatar
MrKasifs
Copper Contributor
Nov 23, 2023
Solved

UnSupported Date Format

Hello, I have a data file where the date " field"of the CSV file contains the Data and Time : Sep 9, 2022 12:13:48 PM EDT obviously Excel would not support such a format - so i am guessing I will have...
  • HansVogelaar's avatar
    HansVogelaar
    Nov 23, 2023

    MrKasifs 

    The formula works in Excel in Microsoft 365.

    For older versions:

    For the date:

    =--(MID(D1,FIND(" ",D1)+1,FIND(",",D1)-FIND(" ",D1)-1)&"-"&LEFT(D1,3)&"-"&MID(D1,FIND(",",D1)+2,4))

    For the time

    =--MID(D1,FIND(",",D1)+7,12)

    Don't forget to format the cells as date and time, respectively.

Resources