📣 Split Date/Time column into separate columns???

Hello!


I have a Date/Time column that I need to split into a Date column and a Time column.


How can I do that? And is there a way to automate that so it runs on future sheets?


Thanks!

Posted on Dec 10, 2022 06:58 PM

Reply
7 replies

Dec 14, 2022 12:02 PM in response to SGIII

Unfortunately, I need to automate it for someone else. I’d love to create an automated applet so all they have to do is drop the file onto it.


I’m just not finding a to script:

  • select 2 columns
  • change the date/time format to not show date
  • create a category and group by day of week


Seems easy but I just can’t find the info on how to do this.


David

Dec 12, 2022 04:02 PM in response to SGIII

I don't really use Numbers because most places use Excel, but I have to say, I'm loving Numbers now. I have been able to accomplish what I need with a few easy steps.


I just formatted the Start Date/Time and End Date/Time columns to show only the time then added a category grouped by Start Date/Time by day of the week. Now I just need to change a few column titles and add a header.


That being said, is there a way to automate this? Apple Scripts? Automator? I'm not very familiar with either but I can learn.


Thanks... David


Dec 11, 2022 04:32 PM in response to Deliddell

A Date-Time string in Numbers and many other software applications (but not Excel, which uses another method) is used to contain both date and time information.


In Numbers you can set the Data Format in the panel at the right to DISPLAY just the date or just the time, but the actual value in the cell will include both a date and the trine.


Hence the question: WHY are you trying to split the date and the time? If it’s just for display purposes then you could duplicate the column and format it in two different ways, one to display just the date and one to display just the time.


If it’s for some other purpose then it would help if you could explain what that is.


SG

Dec 15, 2022 07:13 AM in response to Deliddell

Selecting two columns is straightforward with a script. Changing date/time is not straightforward. Creating and category and grouping by day of week is not possible.


Have you considered setting up a document with a set of instructions, and sharing that? That may not be as cool as creating an applet but it is almost certainly far more effective for getting work done.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

📣 Split Date/Time column into separate columns???

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.