Summing up TIME - 2 Tables

Shahria

New Member
Joined
Jun 5, 2018
Messages
5
Hi All. I'm attempting to sum up a list of times, from two tables IF their names match. Daily i go through a long list and + them manually. Tried to mix IF statements and VLOOK UPS and didn't get anywhere with it. Can anyone help me?

Sam00:39:36
Kate00:38:05
Dan01:20:53
Pete00:12:06
Sam00:45:51
Kate00:12:06

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
maybe something like this with PowerQuery

NameTimeNameTimeNameTime
Sam
00:39:36​
Sam
00:45:51​
Sam
01:25:27​
Kate
00:38:05​
Kate
00:12:06​
Kate
00:50:11​
Dan
01:20:53​
Dan
01:20:53​
Pete
00:12:06​
Pete
00:12:06​

Code:
[SIZE=1]let
    Source = Table.Combine({Table1, Table2}),
    #"Grouped Rows" = Table.Group(Source, {"Name"}, {{"Time", each List.Sum([Time]), type number}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Grouped Rows",{{"Time", type time}})
in
    #"Changed Type"[/SIZE]
 
Upvote 0
Or using Excel formulas

Excel 2010
Row\Col
A
B
C
D
E
F
G
H
1
NameTimeNameTimeNameTime
2
Sam
00:39:36
Sam
00:45:51
Sam
01:25:27
3
Kate
00:38:05
Kate
00:12:06
Kate
00:50:11
4
Dan
01:20:53
Dan
01:20:53
5
Pete
00:12:06
Sheet: Sheet1

Formula in H2 copied down to H4: =SUMIF(A:A,G2,B:B)+SUMIF(D:D,G2,E:E)
 
Upvote 0

Forum statistics

Threads
1,213,515
Messages
6,114,080
Members
448,548
Latest member
harryls

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