Sumproduct to closed workbook, multiple sheets question

Long Nose

Board Regular
Joined
Nov 19, 2007
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a simple formula right now, but it is still developing.

=SUMPRODUCT(--([DRG_Mar_2010_Cont_030303.xlsx]Rb!$BW$5:$CH$5=Formula_Month),[DRG_Mar_2010_Cont_030303.xlsx]Rb!$BW$337:$CH$337)

My question is this, the formula will link to a specific sheet on the closed external source file and this formula will be repeated for several other source sheets, like Rc, Tg, Yh, Ra, and Rx, can I use the same formula and have the Rb (name of sheet) linked to a cell where if I change it, it will go to the new sheet?

This would allow me to keep the same formula and change only a plug cell to redirect my formula to a different but identical layout sheet.

I was thinking a sheetlist could somehow help me. Let me know if this is possible.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
What you're talking about is called INDIRECT() referencing. Using built in native functions, you cannot indirectly reference closed workbooks.

But there are many addins you can use to give your workbook this capability. Only problem is that everyone who will use these workbooks will need to install the same adding. Search for MOREFUNC addin.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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