PaulyK
Board Regular
- Joined
- Aug 27, 2015
- Messages
- 50
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
- Web
Hi,
I have an issue with a SUMIFS formula. The formula works fine until I add an additional row (when i have to add a new Person) and when i sort (or filter) any of the columns B or C. If I do sort (for instance A-Z) the formula gets messed up and the result is wrong.
The Formula:
=SUMIFS('Project allocation'!D:D,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2)
I need the formula to always be using the Name in Column A.
What am I doing wrong? Do I need to include an INDEX MATCH or Lookup to make it work?
Days Allocated
Project Allocation
I have an issue with a SUMIFS formula. The formula works fine until I add an additional row (when i have to add a new Person) and when i sort (or filter) any of the columns B or C. If I do sort (for instance A-Z) the formula gets messed up and the result is wrong.
The Formula:
=SUMIFS('Project allocation'!D:D,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2)
I need the formula to always be using the Name in Column A.
What am I doing wrong? Do I need to include an INDEX MATCH or Lookup to make it work?
Days Allocated
Resource Allocation Tool - RAT - sample.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | NAME | TEAM | Group | Days for Apr-22 | Apr-22 | Days for May 22 | May-22 | Days for June 22 | Jun-22 | Days for July 22 | Jul-22 | Days for Aug 22 | Aug-22 | Days for Sep 22 | Sep-22 | ||
2 | Person 1 | Delivery | 1.0 | 0.0 | 2.5 | 0.0 | 2.5 | 0.0 | 2.5 | 0.0 | 0.0 | 0.0 | |||||
3 | Person 2 | Delivery | MLP | 9.0 | 1.0 | 9.0 | 14.0 | 6.0 | 10.0 | 9.0 | 14.0 | 9.0 | 0.0 | 9.0 | 0.0 | ||
4 | Person 3 | Head of IT | 17.5 | 0.0 | 18.0 | 0.0 | 5.0 | 0.0 | |||||||||
5 | Person 4 | Delivery | BA | 17.0 | 10.0 | 20.0 | 20.0 | 20.0 | 5.0 | 20.0 | 10.0 | 15.0 | 0.0 | 15.0 | |||
6 | Person 5 | Head of IT | 10.0 | 18.5 | 10.0 | 29.5 | 7.0 | 24.5 | 14.0 | 29.0 | 18.0 | 1.0 | |||||
7 | Person 6 | Governance | Gov | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | ||||||||
8 | Person 7 | Delivery | PM | 20.0 | 20.0 | 20.0 | 19.0 | 14.0 | 14.0 | 2.0 | 7.0 | 10.0 | |||||
9 | Person 8 | Head of IT | 10.0 | 3.0 | 7.5 | 3.0 | 3.0 | 1.0 | 0.0 | 1.0 | |||||||
10 | Person 9 | Delivery | PM | 19.0 | 11.5 | 20.0 | 10.5 | 20.0 | 5.0 | 20.0 | 1.0 | 20.0 | 0.0 | 20.0 | 1.5 | ||
11 | Person 10 | Head of IT | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | |||||||||
12 | Person 11 | BA | 20.0 | 10.0 | 20.0 | 25.0 | 20.0 | 30.0 | 20.0 | 30.0 | 20.0 | 25.0 | |||||
13 | Person 12 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | ||||||||||
14 | Person 13 | Data | Data | 15.0 | 0.0 | 0.0 | 1.0 | 0.0 | 1.0 | 0.0 | 1.0 | 0.0 | 0.0 | 0.0 | 0.0 | ||
15 | Person 14 | Delivery | 0.5 | 7.0 | 0.0 | 0.0 | 0.0 | 0.0 | |||||||||
16 | Person 15 | Delivery | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | |||
17 | Person 16 | Security | Security | 5.0 | 4.0 | 7.0 | 7.5 | 7.5 | 0.0 | 7.5 | |||||||
18 | Person 17 | Delivery | 14.0 | 26.0 | 12.0 | 6.0 | 12.0 | 44.0 | 12.0 | 24.0 | 12.0 | 29.0 | 0.0 | ||||
19 | Person 18 | Head of IT | ITBP | 20.0 | 19.0 | 8.0 | 19.0 | 10.0 | 14.0 | 1.0 | |||||||
20 | Person 19 | Head of IT | 4.0 | 6.0 | 4.0 | 1.5 | 10.0 | 11.0 | 15.0 | 0.0 | 20.0 | 19.0 | |||||
21 | Person 20 | Architecture | SA | 8.0 | 6.0 | 8.0 | 6.0 | 6.0 | 0.0 | 6.0 | 0.0 | 6.0 | 0.0 | 8.0 | 0.0 | ||
22 | Person 21 | Data | DA | 0.0 | 2.0 | 6.0 | 4.0 | 4.0 | 4.0 | 2.0 | 0.0 | ||||||
23 | Person 22 | Delivery | BA | 0.0 | 1.0 | 5.0 | 9.5 | 5.0 | 8.5 | 20.0 | 3.0 | 0.0 | 11.0 | ||||
24 | Person 23 | Architecture | SA | 0.0 | 17.0 | 10.0 | 12.0 | 6.0 | 11.0 | 5.0 | 10.0 | 0.0 | 10.0 | 5.0 | |||
25 | Person 24 | MLP | 19.0 | 0.0 | 15.0 | 15.0 | 12.0 | 12.0 | 22.0 | 25.0 | 10.0 | 10.0 | 0.0 | 2.0 | |||
26 | Person 25 | DA | 2.0 | 4.0 | 4.0 | 0.0 | 0.0 | 0.0 | |||||||||
27 | Person 26 | Architecture | SA | 15.0 | 22.5 | 16.0 | 45.5 | 16.0 | 31.5 | 16.0 | 31.5 | 16.0 | 7.5 | 16.0 | 22.5 | ||
Time allocation - Days |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B27 | B2 | =IFERROR(INDEX(NameTbl[Team],MATCH([@NAME],NameTbl[Name],0))," ")&" " |
C2:C27 | C2 | =IFERROR(INDEX(NameTbl[Group],MATCH([@NAME],NameTbl[Name],0))," ")&" " |
E2:E27 | E2 | =SUMIFS('Project allocation'!D:D,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2) |
G2:G27 | G2 | =SUMIFS('Project allocation'!E:E,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2) |
I2:I27 | I2 | =SUMIFS('Project allocation'!F:F,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2) |
K2:K27 | K2 | =SUMIFS('Project allocation'!G:G,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2) |
M2:M27 | M2 | =SUMIFS('Project allocation'!H:H,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2) |
O2:O27 | O2 | =SUMIFS('Project allocation'!I:I,'Project allocation'!$C:$C,"="&'Time allocation - Days'!$A2) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
Summary!IT_Team | =NameTbl[Name] | B2:C27 |
'Summary - Pipeline (Days)'!IT_Team | =NameTbl[Name] | B2:C27 |
IT_Team | =NameTbl[Name] | B2:C27 |
rngWho | =TblProjAlloc[WHO] | O2:O27, M2:M27, K2:K27, I2:I27, G2:G27, E2:E27 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
D2:O27 | Expression | =ISBLANK(D2)=TRUE | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A2:A27 | List | =IT_Team |
Project Allocation
Resource Allocation Tool - RAT - sample.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | PROJECT NUMBER | PROJECT NAME | WHO | Apr-22 | May-22 | Jun-22 | Jul-22 | Aug-22 | Sep-22 | ||
2 | 190158 | Project 1 | Person 23 | 10 | 5 | 5 | 5 | 5 | 5 | ||
3 | 200067 | Project 2 | Person 5 | 0.5 | 0.5 | 1 | 1 | 1 | |||
4 | 200067 | Project 2 | Person 14 | 0.5 | 7 | ||||||
5 | 200067 | Project 2 | Person 26 | 7 | 7 | 7 | 7 | ||||
6 | 210001 | Project 3 | Person 18 | 8 | 8 | 8 | 8 | 8 | |||
7 | 210004 | Project 4 | Person 24 | 3 | 6 | 2 | |||||
8 | 210007 | Project 5 | Person 2 | 1 | 4 | ||||||
9 | 210007 | Project 5 | Person 9 | 2.5 | 5.5 | 1 | 1.5 | ||||
10 | 210008 | Project 6 | Person 5 | 1 | 1 | 1 | 1 | ||||
11 | 210008 | Project 6 | Person 17 | 5 | 4 | 2 | 2 | 2 | |||
12 | 210020 | Project 7 | Person 16 | 4 | 7 | 7.5 | 7.5 | 7.5 | |||
13 | 210022 | Project 8 | Person 26 | 1 | 20 | 7.5 | 7.5 | 7.5 | |||
14 | 210024 | Project 9 | Person 26 | 8 | 2 | 7.5 | 7.5 | 7.5 | |||
15 | 210062 | Project 10 | Person 11 | 15 | 20 | 20 | 20 | 20 | |||
16 | 210070 | Project 11 | Person 5 | 9 | 9 | 6 | 6 | 6 | |||
17 | 210070 | Project 11 | Person 8 | 3 | 3 | 3 | 1 | 1 | |||
18 | 210070 | Project 11 | Person 26 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | ||
19 | 210071 | Project 12 | Person 5 | 8 | 19 | 17.5 | 21 | 11 | |||
20 | 210074 | Project 13 | Person 9 | 5 | 5 | 5 | |||||
21 | 210099 | Project 14 | Person 17 | 2 | |||||||
22 | 210115 | Project 15 | Person 18 | 1 | 1 | 2 | 1 | 1 | |||
23 | 210115 | Project 15 | Person 22 | 7.5 | 7.5 | 1 | 11 | ||||
24 | 210116 | Project 16 | Person 18 | 10 | 10 | 5 | |||||
25 | 210136 | Project 17 | Person 17 | 20 | 20 | 20 | |||||
26 | 210138 | Project 18 | Person 9 | 4 | |||||||
27 | 210138 | Project 18 | Person 11 | 10 | 10 | 10 | 10 | 5 | |||
28 | 210138 | Project 18 | Person 23 | 4 | 5 | 4 | 5 | ||||
29 | 210141 | Project 19 | Person 3 | 17.5 | 18 | 5 | |||||
30 | 210141 | Project 19 | Person 17 | 12 | 18 | 5 | |||||
31 | 210143 | Project 20 | Person 23 | 3 | 2 | 2 | 5 | ||||
32 | 210147 | Project 21 | Person 15 | 7 | 7 | 7 | 7 | 7 | 7 | ||
33 | 210148 | Project 22 | Person 17 | 7 | 2 | 4 | 2 | 2 | |||
34 | 210158 | Project 23 | Person 19 | 6 | 1.5 | 11 | 15 | 19 | |||
35 | 210163 | Project 24 | Person 20 | 6 | 6 | ||||||
36 | 210163 | Project 24 | Person 26 | 6 | 16 | 16 | 16 | ||||
37 | 210167 | Project 25 | Person 22 | 1 | 2 | 1 | 2 | ||||
38 | 210168 | Project 26 | Person 25 | 2 | 4 | 4 | |||||
39 | 210183 | Project 27 | Person 4 | 10 | 10 | 10 | |||||
40 | 210183 | Project 27 | Person 7 | 7 | 7 | 5 | 7 | ||||
41 | 210184 | Project 28 | Person 7 | 7 | 6 | 5 | 5 | ||||
42 | 210185 | Project 29 | Person 4 | 10 | 10 | 5 | 5 | ||||
43 | 210185 | Project 29 | Person 7 | 6 | 6 | 4 | 2 | 5 | |||
44 | 210186 | Project 30 | Person 13 | 1 | 1 | 1 | |||||
45 | 210186 | Project 30 | Person 21 | 2 | 4 | 4 | 2 | ||||
46 | 220006 | Project 31 | Person 2 | 10 | 10 | 14 | |||||
47 | 220006 | Project 31 | Person 24 | 15 | 12 | 22 | 4 | ||||
Project allocation |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
C2:C47 | Expression | =COUNTBLANK(C2) | text | NO |
A2:C49 | Expression | =$B2="Awaiting PPM Upload" | text | NO |
D2:I47 | Expression | =COUNTBLANK(D2) | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
C2:C47 | List | =IT_Team |