Calculate Hours&Mins in Pivot Table

National_Shipping

New Member
Joined
Mar 14, 2019
Messages
2
So, I want to create a Pivot table that displays DELIVERY DATE, sum of RUN#, sum of ORDER#, sum of ORDER AMOUNT, calculates RUN TIME (using DISPATCH TIME & RETURN TIME) in one or two Pivot Table(s). I am having a tough time figuring it out.

Data sample is below that I import into a table from another excel file. So...

Scheduled AssetOrder #Invoice #Delivery DateOrder AmountDispatch TimeRun#Return Time
b T129393879393873/1/20192416.47 5:59:00 AM37283:03:00 PM
b T12939032J390323/1/2019920.38 5:59:00 AM37283:03:00 PM
b T129356958517403/1/20190 5:59:00 AM37283:03:00 PM
b T129420409420403/1/2019646.05 5:59:00 AM37283:03:00 PM
b T129442409442403/1/2019893.1 5:59:00 AM37283:03:00 PM
b T129419819419813/1/2019317.94 5:59:00 AM37283:03:00 PM
b T129423449423443/1/2019891.95 5:59:00 AM37283:03:00 PM
b T12938106K381063/1/2019414.95 5:59:00 AM37283:03:00 PM
b T129440489440483/1/2019112.35 5:59:00 AM37283:03:00 PM
b T129429949429943/1/2019336.5 5:59:00 AM37283:03:00 PM
b T129442328517453/1/20190 5:59:00 AM37283:03:00 PM
f T59443319443313/1/2019115.69 6:43:00 AM37408:33:00 AM
f T59439159439153/1/2019608.16 6:43:00 AM37408:33:00 AM
m T14943407J434073/1/20192027.04 6:50:00 AM37398:25:00 AM
m T149442049442043/1/2019472.5 6:50:00 AM37398:25:00 AM
b T13943479J434793/1/20191488.82 6:57:00 AM373011:03:00 AM
b T139392199392193/1/2019493.47 6:57:00 AM373011:03:00 AM
b T139412879412873/1/2019306.33 6:57:00 AM373011:03:00 AM
b T139396089396083/1/20192117.76 6:57:00 AM373011:03:00 AM
b T139426439426433/1/2019198.43 6:57:00 AM373011:03:00 AM
b T159422339422333/1/2019988.75 7:16:00 AM372611:00:00 AM
b T159437669437663/1/2019102.77 7:16:00 AM372611:00:00 AM
b T159364719364713/1/20192148.31 7:16:00 AM372611:00:00 AM
b T159364959364953/1/20192148.31 7:16:00 AM372611:00:00 AM
b T159365649365643/1/20192097.7 7:16:00 AM372611:00:00 AM
b T11899291I992913/1/201911416 7:19:00 AM372911:36:00 AM
b T119418939418933/1/2019277.18 7:19:00 AM372911:36:00 AM
b T119421659421653/1/2019268.71 7:19:00 AM372911:36:00 AM
b T119252399252393/1/2019853.3 7:19:00 AM372911:36:00 AM
b T119396208517413/1/20190 7:19:00 AM372911:36:00 AM
m T109441949441943/1/201910276.05 7:55:00 AM373810:00:00 AM

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Re: Calculate Hours&Mins in Pivot Table - HELP

like this?

Scheduled AssetDelivery DateSum of Run#Count of Order #Sum of Order Amount Run Time
b T11
03/01/2019​
18645​
5​
12815.19​
21:25:00​
b T12
03/01/2019​
41008​
11​
6949.69​
3:44:00​
b T13
03/01/2019​
18650​
5​
4604.81​
20:30:00​
b T15
03/01/2019​
18630​
5​
7485.84​
18:40:00​
f T5
03/01/2019​
7480​
2​
723.85​
3:40:00​
m T10
03/01/2019​
3738​
1​
10276.05​
2:05:00​
m T14
03/01/2019​
7478​
2​
2499.54​
3:10:00​
 
Last edited:
Upvote 0
Re: Calculate Hours&Mins in Pivot Table - HELP

like this?

Scheduled AssetDelivery DateSum of Run#Count of Order #Sum of Order Amount Run Time
b T11
03/01/2019​
18645​
5​
12815.19​
21:25:00​
b T12
03/01/2019​
41008​
11​
6949.69​
3:44:00​
b T13
03/01/2019​
18650​
5​
4604.81​
20:30:00​
b T15
03/01/2019​
18630​
5​
7485.84​
18:40:00​
f T5
03/01/2019​
7480​
2​
723.85​
3:40:00​
m T10
03/01/2019​
3738​
1​
10276.05​
2:05:00​
m T14
03/01/2019​
7478​
2​
2499.54​
3:10:00​

<tbody>
</tbody>

Thanks for the response. Not quite here is an example on how far I have gotten. I cant figure out the calc of the Run Time length.

Delivery DateScheduled AssetRun#Count of Order #Sum of Order AmountSum of Dispatch TimeSum of Return TimeSum of Run TimeC
3/1/2019 b T1137295$12,815.191.5243055562.4166666670
37353$4,856.191.5770833331.8333333330
b T12372811$6,949.692.7423611116.8979166670
b T1337305$4,604.811.4479166672.3020833330
37372$12,204.521.0430555561.2319444440
b T1537265$7,485.841.5138888892.2916666670
37365$7,560.722.5381944443.1979166670
f T437571$0.000.6333333330.6708333330
f T537402$723.850.5597222220.71250
37423$2,701.881.18751.33750
37461$564.770.5895833330.6333333330
37491$0.010.4659722220.5750
m T1037381$10,276.050.3298611110.4166666670
37442$4,734.260.9138888891.0944444440
37482$1,573.211.1652777781.3180555560
m T1437392$2,499.540.5694444440.7013888890
37415$5,545.692.0347222222.7395833330
3/1/2019 Total56$85,096.2220.8361111130.370833330
3/2/2019 f T437551$1,625.400.3736111110.4277777780

<colgroup><col><col span="2"><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Calculate Hours&Mins in Pivot Table - HELP

calculated field: return - dispatch

Delivery DateScheduled AssetRun#Count of Order #Sum of Order Amount Run Time
03/01/2019
b T11
3729​
5​
12815.19​
21:25:00​
b T12
3728​
11​
6949.69​
3:44:00​
b T13
3730​
5​
4604.81​
20:30:00​
b T15
3726​
5​
7485.84​
18:40:00​
f T5
3740​
2​
723.85​
3:40:00​
m T10
3738​
1​
10276.05​
2:05:00​
m T14
3739​
2​
2499.54​
3:10:00​
Grand Total
31
45354.97
1:14:00
 
Last edited:
Upvote 0
Re: Calculate Hours&Mins in Pivot Table - HELP

ignore post above

Delivery DateScheduled AssetRun#Count of Order #Sum of Order Amount Run Time
03/01/2019
b T11
3729​
5​
12815.19​
21:25:00​
b T12
3728​
11​
6949.69​
99:44:00​
b T13
3730​
5​
4604.81​
20:30:00​
b T15
3726​
5​
7485.84​
18:40:00​
f T5
3740​
2​
723.85​
3:40:00​
m T10
3738​
1​
10276.05​
2:05:00​
m T14
3739​
2​
2499.54​
3:10:00​
Grand Total
31
45354.97
169:14:00
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,050
Members
449,206
Latest member
Healthydogs

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