Forum Discussion

lornafnb's avatar
lornafnb
Helper I
4 years ago
Solved

Multiple date formats in column

Good day - my first post on the Forum! :)-   I'm reading from an Excel file, and the format of the date column is either 2021/11/08, or March '22 (in this case, it can default to 2022/11/01). I su...
  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    4 years ago

    Leave everything, in a custom column put this. That's it. 

    = Date.From(if Text.Contains(Text.From([Live date]),"'") then "1"&Text.Replace([Live date],"'","") else [Live date])

     If you want to convert this column to a date, select column - Transform tab - Detect data type