Cell Link with Variable (SharePoint)

ltjackson

New Member
Joined
Jan 25, 2016
Messages
4
First let me introduce myself before I start bugging you guys about an issue I'm having. My name is Lee and I work for a small company in northern Florida. I kinda got "voluntold" to build a report. I'm decent with excel and know my way around VBA as well so depending on the answers here I may or may not require the "idiot" version of it.

Okay so I've been dealing with this issue over the past couple of hours and I can't seem to find anything online at all. I am building a master sheet that will reference various workbooks and various sheets within each of these workbooks. These are all stored on SharePoint and I've had success in linking these manually but I'd like part of the formula to be a variable. The easiest way I can explain it is with a few snippets of formula and hopefully someone knows what I'm talking about.

I have the following formula that will pull data from cell I8 on one of the separate workbooks/sheets,

Code:
='[my spreadsheet.xlsm]sheet1'!$I$8

I would like to make this a variable, so for instance in cell A1 on the sheet that I'm building I would put in the words "my spreadsheet" and in A2 I would like to be able to put "sheet1" so my formula would work (in a perfect world) like this,

Code:
='"["&A1&".xlsm]"&"A2"&'!$I$8

Which obviously isn't working, any ideas?

Thanks ahead of time.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,221,814
Messages
6,162,132
Members
451,743
Latest member
matt3388

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