Creating an array of Indirect Sums?

gncfoo

New Member
Joined
Feb 8, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I'm using Office 365

This may be a little ambitious but what I'm trying to do is sum a specific Cell across multiple sheets, multiply that sum against a number on another sheet in a large array form?

Example:


SumSheet1SumSheet2SumSheet3MultiplySheet
A1A1A1B1
A2A2A2B2
A3A3A3B3
A4A4A4B4


What I'm trying to do is SUMPRODUCT, essentially as:
  • Array 1
    • Sum of A1 on Sheets 1-3
    • Sum of A2 on Sheets 1-3
    • Sum of A3 on Sheets 1-3
    • Sum of A4 on Sheets 1-3
  • Array 2
    • MultipleSheet!B1:B4

I currently know the formula: =SUMPRODUCT(SUM(INDIRECT("'"&NAMED_SHEET_RANGE&"'!A1")),MultiplySheet!B1) will work for taking the sum of A1 across all sheets and multiplying it by B1, but I need this done for A1:A39 to be multiplied against B1:B39 without copying the formula 39 times if its even possible.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the MrExcel forum!

Try:

Book4
AB
11717
22448
33399
440160
5
Sheet5
Cell Formulas
RangeFormula
B1:B4B1=A1:A4*MultiplySheet!B1:B4
A1:A4A1=SUM(Sheet1:Sheet4!A1)
Dynamic array formulas.


The A formula is a 3-D formula that looks at multiple sheets. The sheets you want to sum must be all together. You do have to drag it down 39 rows though. It's possible that a BYROW function could do it in a single cell, but I don't have that function yet.

The B1 formula is a single-cell formula you don't have to drag down.
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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