Looking for an excel formula for my Sumifs of multiple sheets, multiple columns sum range, and multiple criteria.

suri7891

New Member
Joined
Dec 24, 2020
Messages
24
Office Version
  1. 2016
Hi There,

I am looking for an excel formula for my sumifs of Multiple sheets, multiple column sum range, and multiple criteria. I tried to use Indirect+sumifs+sumproduct. But I am unable to select the multiple column sum range in the excel.

I have uploaded 2 images to understand the requirement. I need to consolidate all the sheets sum into the consolidated sheet. Please help.

Regards,
Suresh
 

Attachments

  • Worksheet image 1.PNG
    Worksheet image 1.PNG
    24.8 KB · Views: 33
  • Worksheet image 2.PNG
    Worksheet image 2.PNG
    25.6 KB · Views: 32

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
@Fluff I apologize for the shortcoming. You are absolutely right, after that I will write my comments with formulas.
After my solution a much simpler solution from Gloffo arrived. So it's better that my complicated formula is not visible in this thread.
(Sorry, my English is too weak.)
 
Upvote 0
The easiest way would be to use power query to grab each table, then combining all months and generate a new combined table.

If you wanted to use a formula, I don't get why you need to use indirect. I would just make a normal sumproduct for january, adding a new for february and so forth. That way, the only thing you need to do each month is to add one more copy of the formula, but with the new month added. Like this.
Excel Formula:
=SUMPRODUCT(($A3=Jan!$A$2:$A$7)*(B$1=Jan!$B$1:$F$1)*(Jan!$B$2:$F$7))+SUMPRODUCT(($A3=Feb!$A$2:$A$7)*(B$1=Feb!$B$1:$F$1)*(Feb!$B$2:$F$7))
Hi Gloffo,

Actually, I have given the sample of my requirement. My raw data is always jumble. It has multiple columns and rows. The new columns and rows will be added regularly. Therefore, power query does not work. Therefore, I need the sumproduct+Indirect formula to resolve this issue.

I tried sumproduct+Indirect (with one condition). But I need to apply this for multiple condition. Please help.

Thanks,
Suresh.K
 
Upvote 0
Hi Gloffo,

Actually, I have given the sample of my requirement. My raw data is always jumble. It has multiple columns and rows. The new columns and rows will be added regularly. Therefore, power query does not work. Therefore, I need the sumproduct+Indirect formula to resolve this issue.

I tried sumproduct+Indirect (with one condition). But I need to apply this for multiple condition. Please help.

Thanks,
Suresh.K
But my formula sums all columns in the table, regardless of order or duplicates. (Of course the format and spellings need to be the same in the names for the columns and rows. ) The only thing you need to do is to make sure you cover the entire table for each sheet.
 
Upvote 0
But my formula sums all columns in the table, regardless of order or duplicates. (Of course the format and spellings need to be the same in the names for the columns and rows. ) The only thing you need to do is to make sure you cover the entire table for each sheet.

Hi Gloffo,

Thanks for the explanation and efforts. I really appreciate it. But I am looking for a standard formula. Because, I get new sheets every week. Then, it is very difficult to change the formula every time.

I would be very helpful if you advise me sumproduct+indirect with multiple criteria formula.

Thanks,
Suresh.K
 
Upvote 0
Hi Friends,

I tried this password for my issue to resolve it. It includes sumproduct+sumifs+Indirect. But I am getting # Value error. I need this sumproduct and Indirect with multiple conditions. Please help me.

=SUMPRODUCT(SUMIFS(INDIRECT("'"&Calculation!$A$4:$A$5&"'!"&"G6:BQ138"),INDIRECT("'"&Calculation!$A$4:$A$5&"'!"&"A6:A138"),Sheet1!$A2)*(INDIRECT("'"&Calculation!$A$4:$A$5&"'!"&"G6:BQ138"),INDIRECT("'"&Calculation!$A$4:$A$5&"'!"&"G3:BQ3"),Sheet1!$B2))

Thanks,
Suresh.K
 
Upvote 0
Hi Friends,

I tried this password for my issue to resolve it. It includes sumproduct+sumifs+Indirect. But I am getting # Value error. I need this sumproduct and Indirect with multiple conditions. Please help me.

Regards,
Suresh.K
 
Upvote 0
I have the same issue with yours. I am trying to find out the standard fomular with multiple criterias ( columns and rows) and in multiple sheets. Awaiting for all of you guys help.
Thank you so much.
 
Upvote 0
Here's an example that consolidates only two months. You'll need to add the remaining months to the list of months in Column I, and adjust the formula accordingly.

suri.xlsm
ABCDEFGHIJ
1Resource NameProject AProject BProject CProject DProject ESheet Names
2A733610Jan
3B57479Feb
4C37466
5D756610
6E97755
7F49759
8
Consolidation
Cell Formulas
RangeFormula
B2:F7B2=SUMPRODUCT(SUMIF(INDIRECT("'"&$I$2:$I$3&"'!A2:A7"),$A2,OFFSET(INDIRECT("'"&$I$2:$I$3&"'!B2:F7"),0,MMULT(IF(T(OFFSET(INDIRECT("'"&$I$2:$I$3&"'!B1:F1"),0,COLUMN(INDIRECT("B:F"))-COLUMN(INDIRECT("B:B")),1,1))=B$1,COLUMN(INDIRECT("B:F"))-COLUMN(INDIRECT("B:B")),0),TRANSPOSE(COLUMN($B$1:$F$1))^0),,1)))


suri.xlsm
ABCDEFG
1Resource NameProject CProject AProject EProject BProject D
2E44453
3B24524
4C32235
5A25521
6D52541
7F42443
8
Jan


suri.xlsm
ABCDEFG
1Resource NameProject EProject CProject AProject DProject B
2A51251
3D51551
4C41114
5E13522
6B42135
7F53225
8
Feb


Hope this helps!
 
Last edited:
Upvote 0
Solution
Here's an example that consolidates only two months. You'll need to add the remaining months to the list of months in Column I, and adjust the formula accordingly.

suri.xlsm
ABCDEFGHIJ
1Resource NameProject AProject BProject CProject DProject ESheet Names
2A733610Jan
3B57479Feb
4C37466
5D756610
6E97755
7F49759
8
Consolidation
Cell Formulas
RangeFormula
B2:F7B2=SUMPRODUCT(SUMIF(INDIRECT("'"&$I$2:$I$3&"'!A2:A7"),$A2,OFFSET(INDIRECT("'"&$I$2:$I$3&"'!B2:F7"),0,MMULT(IF(T(OFFSET(INDIRECT("'"&$I$2:$I$3&"'!B1:F1"),0,COLUMN(INDIRECT("B:F"))-COLUMN(INDIRECT("B:B")),1,1))=B$1,COLUMN(INDIRECT("B:F"))-COLUMN(INDIRECT("B:B")),0),TRANSPOSE(COLUMN($B$1:$F$1))^0),,1)))


suri.xlsm
ABCDEFG
1Resource NameProject CProject AProject EProject BProject D
2E44453
3B24524
4C32235
5A25521
6D52541
7F42443
8
Jan


suri.xlsm
ABCDEFG
1Resource NameProject EProject CProject AProject DProject B
2A51251
3D51551
4C41114
5E13522
6B42135
7F53225
8
Feb


Hope this helps!
Thank you so much for your help. I will check and let you know if I have any more querries. Wish you all the best.
 
Upvote 0

Forum statistics

Threads
1,216,744
Messages
6,132,470
Members
449,729
Latest member
davelevnt

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