beardedcraig
New Member
- Joined
- Aug 2, 2018
- Messages
- 3
Hiya,
Is there anyway I could tidy up/reduce this formula to still get the same outcome? I'm basically trying to sum up all the cells across multiple columns where the criteria matches the content of two seperate cells in another worksheet.
Example: Based on the two sheets below - I wanted to sum up the total allocation percentage per role per project.
e.g. I'd like to automatically work out how many Business Analysts are allocated to Project SKY and what the total allocation percentage is across Business Analysts. The answer should be 60% in the example below.
SHEET1 - 'Raw Data':
[TABLE="width: 800"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Role[/TD]
[TD]Project 1[/TD]
[TD]Allocation[/TD]
[TD]Project 2[/TD]
[TD]Allocation[/TD]
[TD]Project 3[/TD]
[TD]Allocation[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Project Manager[/TD]
[TD]STAR[/TD]
[TD]25%[/TD]
[TD]MOON[/TD]
[TD]25%[/TD]
[TD]SKY[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Business Analyst[/TD]
[TD]STAR[/TD]
[TD]50%[/TD]
[TD]SKY[/TD]
[TD]50%[/TD]
[TD]N/A[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Business Analyst[/TD]
[TD]STAR[/TD]
[TD]25%[/TD]
[TD]MOON[/TD]
[TD]65%[/TD]
[TD]SKY[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Admin[/TD]
[TD]STAR[/TD]
[TD]60%[/TD]
[TD]MOON[/TD]
[TD]20%[/TD]
[TD]SKY[/TD]
[TD]20%[/TD]
[/TR]
</tbody>[/TABLE]
SHEET2 - 'Dropdowns':
[TABLE="width: 200"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Roles[/TD]
[TD]Project Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Project Manager[/TD]
[TD]STAR[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Business Analyst[/TD]
[TD]MOON[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Admin[/TD]
[TD]SKY[/TD]
[/TR]
</tbody>[/TABLE]
The formula that I created (that DOES work) is: =SUMIFS('Raw Data'!C:C, 'Raw Data'!A:A, Dropdowns!A2, 'Raw Data'!B:B, Dropdowns!B3)+SUMIFS('Raw Data'!E:E, 'Raw Data'!A:A, Dropdowns!A2, 'Raw Data'!D:D, Dropdowns!B3)+SUMIFS('Raw Data'!G:G, 'Raw Data'!A:A, Dropdowns!A2, 'Raw Data'!F:F, Dropdowns!B3)
BUT - I'm looking to increase the number of Project columns from 3 to 8 so the formula will end up being HUGE. Is there a way to do this cleaner and more concisely????
Is there anyway I could tidy up/reduce this formula to still get the same outcome? I'm basically trying to sum up all the cells across multiple columns where the criteria matches the content of two seperate cells in another worksheet.
Example: Based on the two sheets below - I wanted to sum up the total allocation percentage per role per project.
e.g. I'd like to automatically work out how many Business Analysts are allocated to Project SKY and what the total allocation percentage is across Business Analysts. The answer should be 60% in the example below.
SHEET1 - 'Raw Data':
[TABLE="width: 800"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Role[/TD]
[TD]Project 1[/TD]
[TD]Allocation[/TD]
[TD]Project 2[/TD]
[TD]Allocation[/TD]
[TD]Project 3[/TD]
[TD]Allocation[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Project Manager[/TD]
[TD]STAR[/TD]
[TD]25%[/TD]
[TD]MOON[/TD]
[TD]25%[/TD]
[TD]SKY[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Business Analyst[/TD]
[TD]STAR[/TD]
[TD]50%[/TD]
[TD]SKY[/TD]
[TD]50%[/TD]
[TD]N/A[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Business Analyst[/TD]
[TD]STAR[/TD]
[TD]25%[/TD]
[TD]MOON[/TD]
[TD]65%[/TD]
[TD]SKY[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Admin[/TD]
[TD]STAR[/TD]
[TD]60%[/TD]
[TD]MOON[/TD]
[TD]20%[/TD]
[TD]SKY[/TD]
[TD]20%[/TD]
[/TR]
</tbody>[/TABLE]
SHEET2 - 'Dropdowns':
[TABLE="width: 200"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Roles[/TD]
[TD]Project Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Project Manager[/TD]
[TD]STAR[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Business Analyst[/TD]
[TD]MOON[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Admin[/TD]
[TD]SKY[/TD]
[/TR]
</tbody>[/TABLE]
The formula that I created (that DOES work) is: =SUMIFS('Raw Data'!C:C, 'Raw Data'!A:A, Dropdowns!A2, 'Raw Data'!B:B, Dropdowns!B3)+SUMIFS('Raw Data'!E:E, 'Raw Data'!A:A, Dropdowns!A2, 'Raw Data'!D:D, Dropdowns!B3)+SUMIFS('Raw Data'!G:G, 'Raw Data'!A:A, Dropdowns!A2, 'Raw Data'!F:F, Dropdowns!B3)
BUT - I'm looking to increase the number of Project columns from 3 to 8 so the formula will end up being HUGE. Is there a way to do this cleaner and more concisely????