Dynamic cell reference in indirect function

okvals48

New Member
Joined
Sep 27, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
This formula is pretty know when you want to sum cells across multiple sheets +SUMPRODUCT(SUMIFS(INDIRECT("'"&B19:B21&"'!d3:d14"),INDIRECT("'"&B19:B21&"'!B3:B14"),$B3))
I am interested is it even possible to make this part dynamic, when i pull the formula it automatically change references, >d3:d14<, i reaserched the internet but it seems always this part is static.
I can make relative cell referenc for first elemet d3, but for other one it does not allow it.

Basically i am trying to find the best solution for summing across multiple sheets, that is flexible, i account that i will have to add rows and columns, in C3 i was testing somthing

Book1.xlsx
BCDEFGH
2123456
3A60
4B63
5C66
6D69
7E72
8F75
9G78
10H81
11I84
12J87
13K0
14L0
15
16
17
18
19Sheet2
20Sheet3
21Sheet4
Sheet1
Cell Formulas
RangeFormula
D3:D14D3=+SUMPRODUCT(SUMIFS(INDIRECT("'"&$B$19:$B$21&"'!d3:d14"),INDIRECT("'"&$B$19:$B$21&"'!B3:B14"),$B3))


Data range, just coppy it on several sheets

Book1.xlsx
BCDEFGH
2123456
3A102030405060
4B112131415161
5C122232425262
6D132333435363
7E142434445464
8F152535455565
9G162636465666
10H172737475767
11I182838485868
12J192939495969
Sheet2
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You could enter the following cell references in cells and refer them in INDIRECT formula .


$B$19:$B$21 = A1 (or any cell)
d3:d14 = A2 (or any cell)


=SUMPRODUCT(SUMIFS(INDIRECT("'"&A1&"'!"&A2),INDIRECT("'"&$B$19:$B$21&"'!B3:B14"),$B3))

Kind regards

Saba
 
Upvote 0
Is this what you need?
Excel Formula:
=SUMPRODUCT(SUMIFS(INDIRECT(ADDRESS(3,COLUMN(D:D),,,$B$19:$B$21)&":"&ADDRESS(14,COLUMN(D:D),,)),INDIRECT("'"&$B$19:$B$21&"'!B3:B14"),$B3))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,601
Messages
6,120,460
Members
448,965
Latest member
grijken

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