Forum Discussion
Anthony_Luk
May 04, 2022Copper Contributor
How can I extract or convert text data into date?
Hi there,
The data and time data as below is written as text. I'm unable to convert it into date format in order to process further analysis such as =year or = month.
Kindly please advise.
Many thanks
- Assuming that first row is in cell P2, use =DATEVALUE(P2) You could then go further with =YEAR(DATEVALUE(P2), etc.
3 Replies
- Patrick2788Silver ContributorTry this:
=LET(p,P2,LEFT(p,FIND(" -",p))*1)
Then format cell with custom code: yyy-mm-dd hh:mm:ss - mathetesSilver ContributorAssuming that first row is in cell P2, use =DATEVALUE(P2) You could then go further with =YEAR(DATEVALUE(P2), etc.
- Anthony_LukCopper Contributor
Thanks for your advice