Adding times together for totals

richiebkerry

Board Regular
Joined
May 4, 2016
Messages
54
Office Version
  1. 365
Platform
  1. Windows
Hello, any help would be greatly appreciated.

I am trying to add together 5 days worth of time data to give a total.

For example the data is (E10) 06:11, (E11) 09:29, (E12) 08:13, (E13) 08:52, (E14) 08:46 to total 41:31 and not 17:31
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#5B9BD5]raw[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
06:11​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
09:29​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
08:13​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
08:52​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
08:46​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#FFFF00]
41:31
[/td][/tr]
[/table]


change format to [hh]:mm then sum
 
Last edited:
Upvote 0
Thanks Sandy666, I have created a pivot table and inserted a calculated field to automatically calculate the difference between the 'End time'-'Start time'... it should give an answer of 09:28 (17:10-07:42) but gives 06:11... I have tried the above solution of formatting the calculated cell [hh]:mm but still don't have the correct answer of 09:28. Any help would be great.
 
Upvote 0
try select time column/range then custom format as above

or

post a link to shared excel file with your pivot table (OneDrive, GoogleDrive, DropBox.... or any similar)
 
Upvote 0
I realized this is format for Excel 2003 or less

So....
Correct your source range with dates, now there is a text not a real dates
if you fix it your PivotTable will work correctly

screenshot-58.png
 
Last edited:
Upvote 0
I tried it more times and for XL2003 conclusion is:

[Table="width:, class:head"][tr=bgcolor:#000000][th] [/th][th]
C
[/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][th]
G
[/th][th]
H
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
1
[/td][td]Weekly No.[/td][td]7[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
2
[/td][td]Driver[/td][td]8 - Test[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
3
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
4
[/td][td][/td][td]Values[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
5
[/td][td]Day[/td][td]Min of Start time[/td][td]Max of End time[/td][td]Active Time[/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
6
[/td][td]
Mon 13/05​
[/td][td]
07:42​
[/td][td]
17:10​
[/td][td]
09:28​
[/td][td]
F6:
[/td][td]=IFERROR(GETPIVOTDATA("Max of End time",$C$4,"Day",C6)-GETPIVOTDATA("Min of Start time",$C$4,"Day",C6),"- -")[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
7
[/td][td]
Tue 14/05​
[/td][td]
06:46​
[/td][td]
16:22​
[/td][td]
09:36​
[/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
8
[/td][td]
Wed 15/05​
[/td][td]
05:46​
[/td][td]
14:10​
[/td][td]
08:24​
[/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
9
[/td][td]
Thu 16/05​
[/td][td]
06:41​
[/td][td]
15:56​
[/td][td]
09:15​
[/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
10
[/td][td]
Fri 17/05​
[/td][td]
06:51​
[/td][td]
15:51​
[/td][td]
09:00​
[/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
11
[/td][td][/td][td][/td][td][/td][td]- -[/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
12
[/td][td][/td][td][/td][td][/td][td]- -[/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#000000]
13
[/td][td][/td][td][/td][td][/td][td]- -[/td][td][/td][td][/td][/tr]
[/table]


maybe someone else will give you better solution
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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