Sum multiple criteria with multiple ranges of criteria

ddeboor

New Member
Joined
May 20, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am trying to sum up values from a data set using multiple ranges of criteria. I am currently doing this using Sumifs but if the criteria set increases I have to be careful to add more sumifs to each formula.

Current Situation

1. 2 criteria sets
2. Each criteria from the first series needs to be checked against each of the second criteria
3. Using these a value is taken from the data set and summed up

I thought I could use a sumproduct but this does not seem to help as I still need one fixed criteria. Any thoughts that does not require multiple additional sheets
 

Attachments

  • image_2022-05-20_154533224.png
    image_2022-05-20_154533224.png
    20.7 KB · Views: 9

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I am trying to sum up values from a data set using multiple ranges of criteria. I am currently doing this using Sumifs but if the criteria set increases I have to be careful to add more sumifs to each formula.

Current Situation

1. 2 criteria sets
2. Each criteria from the first series needs to be checked against each of the second criteria
3. Using these a value is taken from the data set and summed up

I thought I could use a sumproduct but this does not seem to help as I still need one fixed criteria. Any thoughts that does not require multiple additional sheets
Book1.xlsx
CDEFGHIJKLMNOPQRSTU
5
6Data Set
7Sum of ValueCriteria Set 1Criteria Set 2Set ASet BValue
8Budget 1151AB1A5
9Budget 262BC1B10
10Budget 34413BD1C15
11Budget 45434D2A25
122B6
132D8
143C4
153D34
163A86
174A200
184C50
194D20
20
Sheet1
Cell Formulas
RangeFormula
D8:D11D8=SUM(SUMIFS($T$8:$T$19,$R$8:$R$19,G8:J8,$S$8:$S$19,O8),SUMIFS($T$8:$T$19,$R$8:$R$19,G8:J8,$S$8:$S$19,N8),SUMIFS($T$8:$T$19,$R$8:$R$19,G8:J8,$S$8:$S$19,M8),SUMIFS($T$8:$T$19,$R$8:$R$19,G8:J8,$S$8:$S$19,L8))
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUM(SUMIFS($T$8:$T$19,$R$8:$R$19,G8:J8,$S$8:$S$19,TRANSPOSE(L8:O8)))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUM(SUMIFS($T$8:$T$19,$R$8:$R$19,G8:J8,$S$8:$S$19,TRANSPOSE(L8:O8)))
Magic :) Last 2 hours puzzling solved

Thank you very much and for the welcome ;)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

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