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
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
If your summary sheet is a table convert it to a normal range & you can use
+Fluff 1.xlsm
ABCDEFGHIJKLMN
1IDProjectPerson 1Person 2Person 3Person 4Person 5Person 6Person 7Person 8Person 9Person 10Month
2Project 12620002000001/01/2022
3Project 22020000000
4Project 30040000000
5Project 401200000000
6Project 51000000000
7Project 60000001000
8Project 710002030000
9Project 82000000000
10Project 90030000500
11Project 106000000000
12Project 110002000000
13Project 120003000000
14Project 130000000000
15Project 140000100000
16Project 150000000100
Master
Cell Formulas
RangeFormula
B2:B16B2=UNIQUE(Table3[Project])
C2:L16C2=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)
Dynamic array formulas.
 
Upvote 0
Solution
I think there's a conflict with Project 3 on your data table because you have Person 3 twice.
 
Upvote 0
Another option that will spill down & across
+Fluff 1.xlsm
ABCDEFGHIJKLMN
1IDProjectPerson 1Person 2Person 3Person 4Person 5Person 6Person 7Person 8Person 9Person 10Month
2Project 12620002000001/01/2022
3Project 22020000000
4Project 30040000000
5Project 401200000000
6Project 51000000000
7Project 60000001000
8Project 710002030000
9Project 82000000000
10Project 90030000500
11Project 106000000000
12Project 110002000000
13Project 120003000000
14Project 130000000000
15Project 140000100000
16Project 150000000100
17
Master
Cell Formulas
RangeFormula
B2:B16B2=UNIQUE(Table3[Project])
C2:L16C2=MMULT(--(B2#=TRANSPOSE(Table3[Project])),(C1:L1=Table3[Employee])*INDEX(Table3[[Jan-22]:[Dec-22]],,MATCH(TEXT($N$2,"mmm-yy"),Table3[[#Headers],[Jan-22]:[Dec-22]],0)))
Dynamic array formulas.
 
Upvote 0
Did either of the solutions work for you?
 
Upvote 0
Did either of the solutions work for you?
Thank you very much they did indeed, very pleased. I am now trying to recreate the formula in the actual workbook i use. ?


I've never come across =MMULT before in the 2nd example and not sure i could recreate it. so I am going with the 1st as it (just about) makes sense and i can understand it. (Would it be possible though to explain the logic a bit? I've just recently taught myself Sumifs and am attempting to replicate this
 
Upvote 0
This part is finding the value of N2 (in mmm-yy format) in the header of table3 & returning the entire column.
Excel Formula:
INDEX(Table3[[Jan-22]:[Dec-22]],,MATCH(TEXT($N$2,"mmm-yy"),Table3[[#Headers],[Jan-22]:[Dec-22]],0))
Then this is finding the project number that relates to the values in the B2 spill range (you could remove the # sign after B2 & then drag the formula dow)
Excel Formula:
Table3[[Project]:[Project]],$B2#
& the last part is matching the persons name.
HTH
 
Upvote 0
That’s really helpful thank you. I’m struggling a little to replicate it in my spreadsheet (seems to only display one person’s days worked rather than everyone but I will persevere to get it right as it clearly works perfectly in the example
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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