Time intervals

MaayanYogev

New Member
Joined
Feb 5, 2023
Messages
10
Office Version
  1. 2019
Platform
  1. Windows
Time intervals
I have a database of flight arrival times and would like to group them into intervals of 45 minutes, starting from the first hour.
FLOORfunction is problematic here because it rounds down the minutes.

For example:

14:05:00 -- I need the interval to start at 14:05, but "FLOOR" starts if from 14:00
14:12:00
14:18:00
14:45:00

How can I solve this issue?

Thanks
 
Here is the workbook with dates and times:
You can format column A to just show times. .. but you must input the date as well.

Mr Excel Questions2.xlsm
AB
1ArrTransport Time
202/06/2023 10:03 PM10:03:51 PM
302/06/2023 11:12 PM11:12:38 PM
402/06/2023 11:22 PM11:12:38 PM
502/06/2023 11:27 PM11:12:38 PM
602/06/2023 11:29 PM11:12:38 PM
702/06/2023 11:47 PM11:47:08 PM
802/06/2023 11:48 PM11:47:08 PM
902/06/2023 11:50 PM11:47:08 PM
1002/06/2023 11:54 PM11:54:56 PM
1102/06/2023 11:59 PM11:54:56 PM
1202/07/2023 12:23 AM11:54:56 PM
1302/07/2023 12:29 AM11:54:56 PM
1402/07/2023 12:29 AM11:54:56 PM
1502/07/2023 12:30 AM11:54:56 PM
1602/07/2023 12:39 AM11:54:56 PM
1702/07/2023 12:42 AM12:42:31 AM
1802/07/2023 12:46 AM12:42:31 AM
1902/07/2023 12:50 AM12:42:31 AM
2002/07/2023 12:54 AM12:42:31 AM
2102/07/2023 12:54 AM12:42:31 AM
2202/08/2023 01:01 AM1:01:06 AM
2302/08/2023 01:02 AM1:01:06 AM
2402/08/2023 01:41 AM1:41:21 AM
2502/08/2023 01:43 AM1:41:21 AM
2602/08/2023 01:44 AM1:41:21 AM
45 Minute Time Schedule Tranchs
Cell Formulas
RangeFormula
B2,B4:B6,B8:B9,B11:B23,B25:B26B2=IF(ISNUMBER(B1)=FALSE,A2,IF(A2<=(B1+45/(60*24)),B1,A2))
B3,B7,B10,B24B3=IF(ISNUMBER(#REF!)=FALSE,A3,IF(A3<=(#REF!+45/(60*24)),#REF!,A3))
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
the problem is with ARR times 23:15 thru 24:00? if that statment is wrong, please let me know.
Your image is too dark to understand. I'll look at it.
Yes, I believe this is the problem
adding a picture without colors
*in red- the beginning of the problem
 

Attachments

  • WhatsApp Image 2023-02-06 at 18.29.37.jpeg
    WhatsApp Image 2023-02-06 at 18.29.37.jpeg
    103.6 KB · Views: 2
Upvote 0
Yes, I believe this is the problem
adding a picture without colors
*in red- the beginning of the problem
Can you look at what I just sent, I think if you use dates as input you will work well. If not, please let me know.
 
Upvote 1
Here is the workbook with dates and times:
You can format column A to just show times. .. but you must input the date as well.

Mr Excel Questions2.xlsm
AB
1ArrTransport Time
202/06/2023 10:03 PM10:03:51 PM
302/06/2023 11:12 PM11:12:38 PM
402/06/2023 11:22 PM11:12:38 PM
502/06/2023 11:27 PM11:12:38 PM
602/06/2023 11:29 PM11:12:38 PM
702/06/2023 11:47 PM11:47:08 PM
802/06/2023 11:48 PM11:47:08 PM
902/06/2023 11:50 PM11:47:08 PM
1002/06/2023 11:54 PM11:54:56 PM
1102/06/2023 11:59 PM11:54:56 PM
1202/07/2023 12:23 AM11:54:56 PM
1302/07/2023 12:29 AM11:54:56 PM
1402/07/2023 12:29 AM11:54:56 PM
1502/07/2023 12:30 AM11:54:56 PM
1602/07/2023 12:39 AM11:54:56 PM
1702/07/2023 12:42 AM12:42:31 AM
1802/07/2023 12:46 AM12:42:31 AM
1902/07/2023 12:50 AM12:42:31 AM
2002/07/2023 12:54 AM12:42:31 AM
2102/07/2023 12:54 AM12:42:31 AM
2202/08/2023 01:01 AM1:01:06 AM
2302/08/2023 01:02 AM1:01:06 AM
2402/08/2023 01:41 AM1:41:21 AM
2502/08/2023 01:43 AM1:41:21 AM
2602/08/2023 01:44 AM1:41:21 AM
45 Minute Time Schedule Tranchs
Cell Formulas
RangeFormula
B2,B4:B6,B8:B9,B11:B23,B25:B26B2=IF(ISNUMBER(B1)=FALSE,A2,IF(A2<=(B1+45/(60*24)),B1,A2))
B3,B7,B10,B24B3=IF(ISNUMBER(#REF!)=FALSE,A3,IF(A3<=(#REF!+45/(60*24)),#REF!,A3))
Thank you so so much!!
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

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