Formula help

dallasazcat

New Member
Joined
Dec 8, 2024
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Greatly appreciate if someone could help me create a formula to figure out the duration in hours from a list, such as this:

10/26: 9:18 - 10:44
10/27: 7:17 - 10:00
10/28: 7:24 - 9:40
11/5: 7:23 - 10:04
11/6: 8:30 - 10:28
11/7: 7:05 - 9:38
11/10: 7:10 - 10:52
11/11: 11:58 - 1:28
11/12: 6:54 - 9:24
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Your question needs to be more detailed to get a specific answer you can use.

Do you hours line-by-line? Or do you want a single total of all hours? How is your data organized? Is each line you are showing here text in a single cell? That is not good data design and will make this harder. What do you want your result to look like?

I would split each line into three cells. I had to make some assumptions about which times are AM and PM.

$scratch.xlsm
ABCD
1Elapsed Time
210/26/20249:18 AM10:44 AM1:26
310/27/20247:17 AM10:00 AM2:43
410/28/20247:24 AM9:40 AM2:16
511/5/20247:23 AM10:04 AM2:41
611/6/20248:30 AM10:28 AM1:58
711/7/20247:05 AM9:38 AM2:33
811/10/20247:10 AM10:52 AM3:42
911/11/202411:58 AM1:28 PM1:30
1011/12/20246:54 AM9:24 AM2:30
11
12Total Elapsed Time21:19
13Total Hours21
Sheet2
Cell Formulas
RangeFormula
D2:D10D2=C2-B2
D12D12=SUM(D2:D10)
D13D13=D12
 
Upvote 0

Forum statistics

Threads
1,225,369
Messages
6,184,559
Members
453,243
Latest member
Jemini Jimi

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