Simple as SPLIT() with , " "?

Hi,

I have a date time field ([Loading Date / Time]) which pre-populated into my g.sheet from another source (copy and paste).

The text within the field look like this: โ€œ09.09.2019 02:00โ€
I am trying to split the data where there is a space which is inbetween the date: โ€œ09.09.2019โ€ and the time โ€œ02:00โ€.

One VC is my goal which will show โ€œ09.09.2019โ€ but I am struggling with this one.

How would I write the logic?
I have tried the below but cannot get the outcome I am hoping for.

index(split([Loading Date / Time]," "),1) the answer that returns from this is: โ€œMonโ€

Any suggestions?
Thanks in advance,
Chris

Solved Solved
0 4 345
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

DATE([Loading Date / Time])

View solution in original post

4 REPLIES 4

Hi @Chris_Jeal,

Does it help to have the following expression in your VC

DATE(LEFT([Loading Date / Time],FIND(" ",[Loading Date / Time])))

VC is presumed to be of date type column.

INDEX(LIST(โ€œSunโ€, โ€œMonโ€, โ€œTueโ€, โ€œWedโ€, โ€œThuโ€, โ€œFriโ€, โ€œSatโ€), WEEKDAY(DATE(LEFT([Loading Date / Time],FIND(" ",[Loading Date / Time])))))

Without checking, assuming Suvruttโ€™s code works perfectly, adding on to the weekday and index functions should get it to the โ€œMonโ€ display that you are looking for.

Edit, sorry, I misread. @Steve below put all that is needed. I thought you wanted it to say โ€œMonโ€.
DATE([Loading Date / Time]) will parse just the date part out. Similarly, TIME([Loading Date / Time]) will parse out just the time if you ever need it.

Steve
Platinum 4
Platinum 4

DATE([Loading Date / Time])

Guys,

Thanks for your help with this.
@Steve thanks for the solution, works perfectly.

Best,
Chris

Top Labels in this Space