summing time spent per individual for a specific event

Sparda142

Board Regular
Joined
Dec 19, 2018
Messages
52
Hello Excel Gods!
Please help!:pray::pray:

In Cell b2 i need a formula that will find a2(john) in column J and sum the same type of event for a2 from column J that is for a2 matching the name in b1:H1

Some notes
Column K is in the format Hours, Minutes, Seconds
The cell to the right of the individuals name in column J is always blank
Not all individuals have the same number of events as there peers
Information pertaining to a individual is only from the person name to the following blank spot in column K - for example the only events that pertain for A2(john) are from J3:J6


abcdefghijkl
1NameNo CodeBreakLunchForced RelOtherMeetingOOSState NameDuration
2John John
3JacobBreak0:15:48
4AnthonyLunch0:04:02
5KyleOther0:00:16
6StevenBreak0:32:13
7TinaJacob
8SaraBreak0:14:33
9LukeBreak0:15:05
10JenniferOOS0:07:01
11Kyle
12Break0:15:00
13Break0:13:00
14Break0:20:25
15No code1:03:01
16Other0:47:05
17Steven
18OOS0:03:40
19Forced Rel0:00:15
20Meeting1:00:41
21Jennifer
22Lunch6:00:00
23Luke
24Break0:33:11
25No code0:00:10
26Meeting0:45:00
27
28
29
30
31
32
33
34
35
36
37
38
39
40

<tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Put this formula in B2, and copy down and across as needed.

Code:
=IFERROR(1/(1/SUMPRODUCT($K$2:$K$50,--($J$2:$J$50=B$1),--(ROW($J$2:$J$50)-ROW($J$2)+1>MATCH($A2,$J$2:$J$50,0)),--(ROW($J$2:$J$50)-ROW($J$2)+1< AGGREGATE(15,6,ROW($K$2:$K$50)/((ROW($K$2:$K$50)-ROW($J$2)+1>MATCH($A2,$J$2:$J$50,0))*($K$2:$K$50="")),1)))),"")<aggregate(15,6,row($k$2:$k$50) ((row($k$2:$k$50)-row($j$2)+1=""><aggregate(15,6,row($k$2:$k$50) ((row($k$2:$k$50)="">
</aggregate(15,6,row($k$2:$k$50)></aggregate(15,6,row($k$2:$k$50)>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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