Create formula to add cells from variable dynamic list of worksheets

dcdc113

New Member
Joined
Mar 16, 2022
Messages
1
Struggling to create a formula or VBA to add data from multiple sheets in another workbook based on selection from a dropdown list of worksheets.

Example:
Dropdown List
...documents\[workbook1.xlsx]Sheet1'!$B$3
...documents\[workbook1.xlsx]Sheet2'!$B$3
...documents\[workbook1.xlsx]Sheet3'!$B$3
...documents\[workbook1.xlsx]Sheet4'!$B$3

Say I want to add the values from Sheets 2 and 4, those are chosen from dropdown and sum of B3 in those 2 sheets are placed in D4.
The names of the workbooks and sheets will change and the list will change dynamically. I have tried to used concatenate as a formula in the cell and to use VBA to place the formula in the cell with no luck.


Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
When you use VBA to place the formula in the cell. what formula do you end up with? Debugging that seems a good place to start.
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,893
Members
449,194
Latest member
JayEggleton

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