Sum by Name, Project and Date (in column)

PaulyK

Board Regular
Joined
Aug 27, 2015
Messages
50
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
I have a spreadsheet containing Projects and Employee Resources. Each Month the allocated number of days per project to be worked are entered into the month column. I am looking for a way to be able to sum the amount of days worked, per project, per employee each month. I have used Sumifs to get a Total for the amount of days, per project for a specific month, but not with all the criteria (By Month, Employee, Project) to summarize in a separate worksheet. I can Sum the totals for a single Month column (Jan-22 in this case) by Project and Employee using the below formula. But how can I make it just use a specific month date? I have added an example below. It may be the case that there is a much easier approach - i only learnt SUMIFS recently!

ProjectEmployeeJan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22
Project 1Person 12011212130441
Project 1Person 264000603111.5
Project 1Person 32031233211012
Project 1Person 625344421012.5
Project 2Person 12113300403
Project 2Person 324000383.5
Project 3Person 3081119000434
Project 3Person 34646464644.5
Project 4Person 2122810.524.535.555
Project 5Person 11008.50010065.5
Project 6Person 71002.5010776
Project 7Person 110030.504006.5
Project 7Person 520202118333307
Project 7Person 630.5121164101021
Project 8Person 120.5000000822
Project 9Person 33333.5000030
Project 9Person 607.510.518.512560
Project 9Person 701257801.570
Project 9Person 8555100.50.510.590
Project 10Person 16666666110
Project 11Person 423455125021
Project 12Person 43146914932
Project 13Person 20154354341
Project 14Person 51111100012
Project 15Person 81234567080


SUMMARY sheet
Book1
ABCDEFGHIJKLMNOP
1IDProjectPerson 1Person 2Person 3Person 4Person 5Person 6Person 7Person 8Person 9Person 10MonthJan-22
2Project 12Jan-22Feb-22
3Project 22Mar-22
4Project 30Apr-22
5Project 40May-22
6Project 51Jun-22
7Project 60Jul-22
8Project 71Aug-22
9Project 82Sep-22
10Project 90Oct-22
11Project 106Nov-22
12Project 110Dec-22
13Project 120Jan-23
14Project 130Feb-23
15Project 140Mar-23
16Project 150Apr-23
17May-23
18Jun-23
19Jul-23
20Aug-23
21Sep-23
22Oct-23
23Nov-23
24Dec-23
Summary
Cell Formulas
RangeFormula
B2:B16B2=UNIQUE(Table3[Project])
C2:C16C2=SUMIFS(Table3[Jan-22],Table3[Project],Summary!B2,Table3[Employee],TblProjAlloc[[#Headers],[Person 1]])
Dynamic array formulas.
Named Ranges
NameRefers ToCells
rngProject=Summary!$B$2:$B$9C2
Cells with Data Validation
CellAllowCriteria
N2List=rngMonth


I am using a Dynamic Range using =Sort(Unique for the projects so in the actual spreadsheet I am unable to create a table as it causes it to SPILL
 
If you mean that only one column shows totals & the others are all 0s then check that the names in the header row are exactly the same as those in the data table.
Thanks. Think it is probably something along those lines. The actual data source i am using is a little more complex than that in the example i provided (same principle) so am just working it out
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
This is where i got stuck....


Summary

Resource Allocation Tool - RAT - Example.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABAC
1Project IDProjectMar-22Person 1Person 2Person 3Person 20Person 13Person 14Person 8Person 6Person 15Person 10Person 26Person 4Person 7Person 11Person 9Person 23Person 18Person 5Person 27Person 25Person 12Person 17Person 16Person 22Person 19Person 21
2Project 150000000000000000000000000
3Project 200000000000000000000000000
4Project 300000000000000000000000000
5Project 800000000000000000000000000
6Project 900000000000000000000000000
7Project 1000000000000000000000000000
8Project 1180000000000000000000000000
9Project 1300000000000000000000000000
10Project 14100000000000000000000000000
11Project 1500000000000000000000600000
12Project 1600000000000000000000000000
13Project 1700000000000000000000000000
14Project 1800000000000000000000000000
15Project 1900000000000000000000000000
16Project 2000000000000000000000000000
17Project 2100000000000000000000000000
18Project 2200000000000000000000000000
19Project 2300000000000000000000000000
20Project 2400000000000000000000000000
21Project 2500000000000000000000000000
22Project 2600000000000000000000000000
23Project 2700000000000000000000000000
24Project 2800000000000000000000000000
25Project 2900000000000000000000000000
26Project 3000000000000000000000000000
27Project 3100000000000000000000000000
28Project 3200000000000000000000000000
29Project 500000000000000000000000000
30Project 3300000000000000000000000000
31Project 3400000000000000000000000000
32Project 3500000000000000000000000000
33Project 3600000000000000000000000000
34Project 3730000000000000000000000000
35Project 3900000000000000000000000000
36Project 4000000000000000000000000000
37Project 4100000000000000000000000000
38Project 4200000000000000000000000000
39Project 4330000000000000000000700000
40Project 4400000000000000000000000000
41Project 4500000000000000000000000000
42Project 4600000000000000000000000000
43Project 4700000000000000000000000000
44Project 600000000000000000000000000
45Project 400000000000000000000000000
46Project 4800000000000000000000000000
47Project 5000000000000000000000000000
48Project 5100000000000000000000000000
49Project 5200000000000000000000000000
50Project 5380000000000000000000000000
51Project 5400000000000000000000000000
52Project 5500000000000000000000000000
53Project 700000000000000000000000000
54Project 5610000000000000000000000000
55Project 5700000000000000000000000000
56Project 5800000000000000000000000000
57Project 5900000000000000000000000000
58Project 6000000000000000000000000000
59Project 6100000000000000000000000000
Summary
Cell Formulas
RangeFormula
D1:AC1D1=TRANSPOSE(rngPeople)
B2:B59B2=UNIQUE(TblProjAlloc[PROJECT NAME])
D2:D59,X2:X59,N2:N59D2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[PROJECT NAME],$B2#,TblProjAlloc[WHO],D1)
E2:E59,Y2:Y59,O2:O59E2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[WHO],$B2#,TblProjAlloc[Mar-22],E1)
F2:F59,Z2:Z59,P2:P59F2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[Mar-22],$B2#,TblProjAlloc[Apr-22],F1)
G2:G59,AA2:AA59,Q2:Q59G2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[Apr-22],$B2#,TblProjAlloc[May-22],G1)
H2:H59,AB2:AB59,R2:R59H2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[May-22],$B2#,TblProjAlloc[Jun-22],H1)
I2:I59,AC2:AC59,S2:S59I2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[Jun-22],$B2#,TblProjAlloc[Jul-22],I1)
J2:J59,T2:T59J2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[Jul-22],$B2#,TblProjAlloc[Aug-22],J1)
K2:K59,U2:U59K2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[Aug-22],$B2#,TblProjAlloc[Sep-22],K1)
L2:L59,V2:V59L2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[Sep-22],$B2#,TblProjAlloc[PROJECT NUMBER],L1)
M2:M59,W2:W59M2=SUMIFS(INDEX(TblProjAlloc[[Mar-22]:[Sep-22]],,MATCH(TEXT($C$1,"mmm-yy"),TblProjAlloc[[#Headers],[Mar-22]:[Sep-22]],0)),TblProjAlloc[PROJECT NUMBER],$B2#,TblProjAlloc[PROJECT NAME],M1)
Dynamic array formulas.
Named Ranges
NameRefers ToCells
'Project allocation'!_FilterDatabase='Project allocation'!$A$8:$C$38L2:M2, V2:W2
rngPeople=Lists!$H$2:$H$27D1
Cells with Data Validation
CellAllowCriteria
C1List=rngMonths
D1:AD1List=IT_Team
 
Upvote 0
Data - Allocation

Resource Allocation Tool - RAT - Example.xlsx
ABCDEFGHIJ
1PROJECT NUMBERPROJECT NAMEWHOMar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22
2190105Project 1Person 15610000
3190105Project 1Person 21100000
4190165Project 2Person 30.50001
5190165Project 2Person 20002
6190165Project 2Person 13013
7190165Project 2Person 14004
8200066Project 3Person 8111.5
9200067Project 8Person 600001
10200067Project 8Person 150000
11200067Project 8Person 32000
12200067Project 8Person 1000002.5
13200067Project 8Person 2600002.51
14200067Project 8Person 100002.5
15200078Project 9Person 40.522.5
16200078Project 9Person 100.50.52.52.51
17200087Project 10Person 2048
18210001Project 11Person 18888881
19210001Project 11Person 151414141
20210004Project 13Person 7010011
21210004Project 13Person 1154211
22210004Project 13Person 936201
23210004Project 13Person 2311
24210007Project 14Person 1101081
25210007Project 14Person 18841
26210007Project 14Person 2688
27210007Project 14Person 5443
28210007Project 14Person 270001.551
29210007Project 14Person 90.5001.51
30210007Project 14Person 251515225
31210007Project 14Person 4000
32210007Project 14Person 8200
33210007Project 14Person 23000341
34210007Project 14Person 12022
35210008Project 15Person 310001
36210008Project 15Person 171111
37210008Project 15Person 6111111
38210008Project 15Person 12655
39210010Project 16Person 288101084
40210015Project 17Person 1831
41210022Project 18Person 15
42210024Project 19Person 15
43210028Project 20Person 60
44210028Project 20Person 152
45210036Project 21Person 184
46210037Project 22Person 16
47210044Project 23Person 31100
48210044Project 23Person 17111
49210055Project 24Person 1877
50210062Project 25Person 133102020202020
51210062Project 25Person 23102011411
52210062Project 25Person 10102020202020
53210062Project 25Person 2711020*020*20*20
54210066Project 26Person 30000
55210066Project 26Person 600
56210066Project 26Person 18007
57210067Project 27Person 10202010
58210070Project 28Person 108888666
59210070Project 28Person 150.50.50.50.50.50.50.5
60210070Project 28Person 10000000
61210070Project 28Person 41111111
62210070Project 28Person 23000000
63210070Project 28Person 80000000
64210070Project 28Person 60000000
65210070Project 28Person 140000000
66210074Project 29Person 95
67210074Project 29Person 22
68210074Project 29Person 34
69210074Project 29Person 85
70210082Project 30Person 17
71210082Project 30Person 12
72210082Project 30Person 187
73210083Project 31Person 123321
74210083Project 31Person 114442
75210088Project 32Person 633300
76210089Project 5Person 24440000
77210099Project 33Person 18
78210113Project 34Person 1800
79210115Project 35Person 13
80210115Project 35Person 171074111
81210116Project 36Person 17454444
82210138Project 37Person 944
83210138Project 37Person 1330000
84210138Project 37Person 1001010
85210138Project 37Person 231010
86210138Project 37Person 24455
87210138Project 37Person 20106
88210141Project 39Person 5
89210144Project 40Person 33
90210145Project 41Person 25222278
91210146Project 42Person 2074
92210147Project 43Person 127777777
93210147Project 43Person 135550000
94210147Project 43Person 202
95210147Project 43Person 25554000
96210147Project 43Person 13444400
97210148Project 44Person 2016
98210154Project 45Person 18
99210158Project 46Person 224
100210158Project 46Person 414
101210160Project 47Person 1
102210162Project 6Person 2511744
103210163Project 4Person 14666
104210164Project 47Person 25171
105210165Project 48Person 25178115.51.5
106210166Project 50Person 1691082
107210167Project 51Person 1331
108210167Project 51Person 1053
109210167Project 51Person 1936362
110210168Project 52Person 235192211
111210169Project 53Person 211
112210169Project 53Person 1886
113210169Project 53Person 22313
114210169Project 53Person 142313
115210170Project 54Person 154440000
116210170Project 54Person 22444000
117210170Project 54Person 2045123
118210171Project 55Person 2025
119210172Project 7Person 1910121512124
120210172Project 7Person 271899662
121210174Project 56Person 11210111
122210174Project 56Person 201331
123210175Project 57Person 132442
124210177Project 58Person 1935551
125210183Project 59Person 711111
126210184Project 60Person 2767111
127210186Project 61Person 224885
128210186Project 61Person 238107
129210186Project 61Person 21210103
Project allocation
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B112:B114Expression=$B112="Awaiting PPM Upload"textNO
C2:C129Expression=COUNTBLANK(C2)textNO
C111:C112Expression=$B111="Awaiting PPM Upload"textNO
A111:B111,A112:A114,C112:C114,A115:C131,A2:C110Expression=$B2="Awaiting PPM Upload"textNO
D2:J129Expression=COUNTBLANK(D2)textNO
Cells with Data Validation
CellAllowCriteria
C112:C129List=IT_Team
C2:C110List=IT_Team
 
Upvote 0
You haven't locked the columns, so when you drag the formula across the table columns change.
 
Upvote 0
You haven't locked the columns, so when you drag the formula across the table columns change.
Oh as simple as that? I can see now. I wasn’t aware you could lock a column (I know for a cell I can do Fn F4. How do I lock a Column?
 
Upvote 0
The same way I did
Rich (BB code):
=SUMIFS(INDEX(Table3[[Jan-22]:[Dec-22]],,MATCH(TEXT($N$2,"mmm-yy"),Table3[[#Headers],[Jan-22]:[Dec-22]],0)),Table3[[Project]:[Project]],$B2#,Table3[[Employee]:[Employee]],C1)
 
Upvote 0
The same way I did
Rich (BB code):
=SUMIFS(INDEX(Table3[[Jan-22]:[Dec-22]],,MATCH(TEXT($N$2,"mmm-yy"),Table3[[#Headers],[Jan-22]:[Dec-22]],0)),Table3[[Project]:[Project]],$B2#,Table3[[Employee]:[Employee]],C1)
Genius! got it. thank you .
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0
The same way I did
Rich (BB code):
=SUMIFS(INDEX(Table3[[Jan-22]:[Dec-22]],,MATCH(TEXT($N$2,"mmm-yy"),Table3[[#Headers],[Jan-22]:[Dec-22]],0)),Table3[[Project]:[Project]],$B2#,Table3[[Employee]:[Employee]],C1)
Thank you so much. It works! Easy when you know how!
 
Upvote 0
One final question. In my data set I have another (separate) table of projects / people (these are ones awaiting approval) Is it possible to include this data in the main summary. Or potentially an easy way to sum both totals?
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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