Mr. Excel Wannabe
New Member
- Joined
- Mar 29, 2006
- Messages
- 11
I have two columns of trip data, in column A are trip dates and column B are trip times. I want to sum trip times by month in hour groupings: before 5AM, between 5AM and 1PM, between 1PM and 9PM, and after 9PM. This is the formula I'm using for the Between 5 AM & 1 PM: =SUMIFS($B:$B, $A:$A, ">="&D$1, $A:$A, "<"&E$1, $B:$B, ">=TIME(5,0,0)", $B:$B, "<TIME(13,0,0)")
Column A is formatted as Date and Column B is formatted as Time. The results continue to show 0. Please tell me what I'm missing.
Column A is formatted as Date and Column B is formatted as Time. The results continue to show 0. Please tell me what I'm missing.
Pickup Date Local | Pickup Time Local | 12/1/2023 | 1/1/2024 | 2/1/2024 | |
12/1/2023 | 4:19:00 PM | December | January | February | |
12/1/2023 | 2:37:00 PM | Before 8 AM | 0 | 0 | 0 |
12/1/2023 | 1:02:00 PM | Between 5 AM & 1 PM | 0 | 0 | 0 |
12/1/2023 | 3:15:00 PM | Between 1 PM & 9 PM | 0 | 0 | 0 |
12/1/2023 | 4:40:00 PM | After 9 PM | 0 | 0 | 0 |
12/1/2023 | 2:00:00 PM | ||||
12/1/2023 | 9:13:00 AM | ||||
12/1/2023 | 8:41:00 AM | ||||
12/1/2023 | 12:35:00 PM |