Sorting Date and Time

markster

Well-known Member
Joined
May 23, 2002
Messages
579
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello there

A column in my spreadsheet contains the date and time of transaction in the following format:

2021.05.10 01:00:29

There's 20,000 lines and i need to sort by date and time but i can't get it to work using the sort function - does anyone have any ideas?

Thanks
Mark

2021.05.10 01:00:29
 
Oh I've just had feedback from my boss and now he's asked that each transactionbe put into an hour time slot based on time. So for instance:

9am is in the 9:00 to 09:59 time frame
12noon is in the 12:00 to 12:59 time frame
16:30 is in the 16:00 to 16:59 time frame

The time only is in Column B2 downwards in the following format 01:00:29

Maybe VBA code would be better so don't have to have a super long formula.

This is the last change in specification - sorry again - I'm up against it.

Thanks
Mark
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Upvote 0
Solution
Perfect thanks - works a treat. Have a good evening.
M
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top