pendulum
Board Regular
- Joined
- Feb 27, 2015
- Messages
- 53
- Office Version
- 2021
I'm sure this has never been asked before
Hello.
My data looks like this. Notice that sometimes there is a time, sometimes not, but always a date.
And so I was using this formula.. (Which I must say, I'm pretty proud that I implemented LET correctly)
Inefficient, yes, as I run the parsing twice just to get the DATEVALUE and the TIMEVALUE then add them up, but I need them together so I can time-zone convert into another column.
Okay but my problem is that the AM/PM is not being parsed correctly.
Can someone suggest a better way to do this?
Thanks.
Hello.
My data looks like this. Notice that sometimes there is a time, sometimes not, but always a date.
10/29/2022 4:03AM Some more text here |
10/29/2022 4:26AM Even more text here |
10/29/2022 All this is text |
10/29/2022 And some different text here |
And so I was using this formula.. (Which I must say, I'm pretty proud that I implemented LET correctly)
Excel Formula:
=LET(
timestampExtract,
MID(raw!A254,MIN(IFERROR(MIN(FIND({0,1,2,3,4,5,6,7,8,9},raw!A254&"0123456789",1)),LEN(raw!A254)+1)),LOOKUP(1,0*MID(raw!A254,ROW(INDIRECT("1:"&LEN(raw!A254))),1),ROW(INDIRECT("1:"&LEN(raw!A254)))) + 1 - MIN(IFERROR(MIN(FIND({0,1,2,3,4,5,6,7,8,9},raw!A254&"0123456789",1)),LEN(raw!A254)+1))),
DATEVALUE(timestampExtract) + TIMEVALUE(timestampExtract)
)
Okay but my problem is that the AM/PM is not being parsed correctly.
Can someone suggest a better way to do this?
Thanks.