Sum Across Different Sheet/ Simplifying a Formula

vs77777

New Member
Joined
Mar 7, 2018
Messages
6
Does anyone know how to simplify this formula? I am going to have more sheets that will have text names - not just sheet 1, sheet 2, sheet 3, etc. Ideally, it would be great if I could reference the entire group of sheet names and then be able to add more names to the group as I create more sheets. Thank!

=SUMPRODUCT(('Sheet 1'!$A$6:$A$1000=$A8)*('Sheet 1'!$E$5:$ZZ$5=D$5)*('Sheet 1'!$E$6:$ZZ$1000))+SUMPRODUCT(('Sheet 2'!$A$6:$A$1000=$A8)*('Sheet 2'!$E$5:$ZZ$5=D$5)*('Sheet 2'!$E$6:$ZZ$1000))+SUMPRODUCT(('sheet 3'!$A$6:$A$1000=$A8)*('sheet 3'!$E$5:$ZZ$5=D$5)*('sheet 3'!$E$6:$ZZ$1000))+SUMPRODUCT(('sheet 4'!$A$6:$A$1000=$A8)*('sheet 4'!$E$5:$ZZ$5=D$5)*('sheet 4'!$E$6:$ZZ$1000))
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Do you REALLY need to spread your source data across lots of different sheets ?

It's difficult to be certain without seeing your situation, but in many cases people THINK they need to have their data spread across multiple sheets (for example a different sheet for each day / month, or a different sheet for each branch of their organisation), but re-designing their application so that all the data is on a single sheet would bring many benefits, and this looks like the type of situation where this might apply.
 
Upvote 0
Unfortunately I do. Each sheet is a separate complex investment waterfall, with each having revenue, costs, net income, profit, on different rows and I need to sum data for different dates - with the dates across columns. However, the start date for each waterfall is different (so column C could be March 1st in sheet 1, 2016 and column C in sheet 2 could be June 1st, 2017). If there is no way to simplify this, I understand. Thank you for looking into it.
 
Upvote 0
It seems to me that this is a valuable piece of information on it's own
=SUMPRODUCT(('Sheet 1'!$A$6:$A$1000=$A8)*('Sheet 1'!$E$5:$ZZ$5=D$5)*('Sheet 1'!$E$6:$ZZ$1000))
As is this
=SUMPRODUCT(('Sheet 2'!$A$6:$A$1000=$A8)*('Sheet 2'!$E$5:$ZZ$5=D$5)*('Sheet 2'!$E$6:$ZZ$1000))
And so on for each sheet.

I can't imagine wanting to know the sum of all sheets, but NOT wanting to know the value of each individual sheet as well.

I would recommend designating 1 cell on each sheet (the same cell on all, say AAA1 for example)
So Sheet1 AAA1 =SUMPRODUCT(('Sheet 1'!$A$6:$A$1000=$A8)*('Sheet 1'!$E$5:$ZZ$5=D$5)*('Sheet 1'!$E$6:$ZZ$1000))
Sheet2 AAA1 =SUMPRODUCT(('Sheet 2'!$A$6:$A$1000=$A8)*('Sheet 2'!$E$5:$ZZ$5=D$5)*('Sheet 2'!$E$6:$ZZ$1000))
etc..

Then use
=SUM('Sheet1:Sheet10'!AAA1)
 
Last edited:
Upvote 0
Unfortunately that doesn't take into consideration different dates so aaa1 will correspond to a column with different date on sheet 1 than on sheet 2. So i'll be summing for numbers on the wrong dates.
 
Upvote 0
You would update the formula on each sheet to reference A8 and D5 on the sheet that contains the formula (call that summary for example)
And you wouldn't need the Sheet 1 references anymore either..

Sheet1 AAA1: =SUMPRODUCT(($A$6:$A$1000=Summary!$A8)*($E$5:$ZZ$5=Summary!D$5)*($E$6:$ZZ$1000))
Sheet2 AAA1: =SUMPRODUCT(($A$6:$A$1000=Summary!$A8)*($E$5:$ZZ$5=Summary!D$5)*($E$6:$ZZ$1000))
 
Upvote 0

Forum statistics

Threads
1,216,083
Messages
6,128,718
Members
449,465
Latest member
TAKLAM

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