Sum with multiple criteria - formula help

PivotMeThis

Active Member
Joined
Jun 24, 2002
Messages
346
My report contains data for employees working on projects for each pay period for the past several years. I need to sum the labor hours (column M) for each employee (column H) on each project (column I) for each year (column S).

I need the total on the first row.

I've used countif/sumif in the past but there is just too many items for me to figure this out.

example (I use this formula in a different report): if(countif(k$2:k2,k2)>1,"",sumif(k:k,k2,m:m)) I thought it might be a starting point but I'm totally lost.

I really appreciate your help.
Thanks
 

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.
Will this do? Or do I need to do something else?



Employee NameProject NumberHoursYearHours/Project/Year
DANIELBG-9A10(035)2.5201620.5
DANIELBG-9A10(035)18.02016
DANIELBG-9A10(035)6.020156.0
BURKEBG-9A10(035)34.02016105.0
BURKEBG-9A10(035)712016
BURKEBG-9A10(035)43.0201567.0
BURKEBG-9A10(035)242015
JOHNSONBRF-006-4(159)75.0201675.0
JOHNSONBRF-006-4(159)76.52015136.5
JOHNSONBRF-006-4(159)60.02015
JOHNBRF-006-4(159)15.8201625.9
JOHNBRF-006-4(159)10.12016
 
Upvote 0
A
B
C
D
E
1
Employee NameProject NumberHoursYearHours/Project/Year
2
DANIELBG-9A10(035)
2.5​
2016​
20.5​
3
DANIELBG-9A10(035)
18​
2016​
4
DANIELBG-9A10(035)
6​
2015​
6​
5
BURKEBG-9A10(035)
34​
2016​
105​
6
BURKEBG-9A10(035)
71​
2016​
7
BURKEBG-9A10(035)
43​
2015​
67​
8
BURKEBG-9A10(035)
24​
2015​
9
JOHNSONBRF-006-4(159)
75​
2016​
75​
10
JOHNSONBRF-006-4(159)
76.5​
2015​
136.5​
11
JOHNSONBRF-006-4(159)
60​
2015​
12
JOHNBRF-006-4(159)
15.8​
2016​
25.9​
13
JOHNBRF-006-4(159)
10.1​
2016​

<tbody>
</tbody>


E2=IF(COUNTIFS($A$2:A2,$A2,$D$2:$D2,$D2)=1,SUMIFS($C$2:$C$13,$A$2:$A$13,$A2,$B$2:$B$13,$B2,$D$2:$D$13,$D2),"") copy down
 
Upvote 0

Forum statistics

Threads
1,216,811
Messages
6,132,836
Members
449,761
Latest member
AUSSW

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