How to use a value from another cell as part of a cell reference

Bentley_Wood

New Member
Joined
Nov 6, 2017
Messages
12
I have a spreadsheet with weekly orders. Each tab is named 'WK (1)', 'WK (2)', 'WK (3)' etc.

I have a separate sheet which is pulling all the data from each week so it can be viewed on one page.

This is what I've used so far which works:

='K:\Production\[Order Sheet 2020.xlsm]WK (1)'!$O5

I have the week numbers in row 1 and want to be able to change the tab reference using a formula for example:

='K:\Production\[Order Sheet 2020.xlsm]WK (A1)'!$O5

Is there a way to get this to work?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You can use the Indirect function, but the order sheet will need to be open.
 
Upvote 0
Close, you need to keep the ' around the workbook name & sheet
Excel Formula:
=INDIRECT("'K:\Production\[Order Sheet 2020.xlsm]"&A1&"'!$O5")
where A1 needs to have the whole sheet name, or
Excel Formula:
=INDIRECT("'K:\Production\[Order Sheet 2020.xlsm]WK ("&A1&")'!$O5")
if you just want the week number
 
Upvote 0
Solution
Close, you need to keep the ' around the workbook name & sheet
Excel Formula:
=INDIRECT("'K:\Production\[Order Sheet 2020.xlsm]"&A1&"'!$O5")
where A1 needs to have the whole sheet name, or
Excel Formula:
=INDIRECT("'K:\Production\[Order Sheet 2020.xlsm]WK ("&A1&")'!$O5")
if you just want the week number
That's worked now, Thank you!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
How about
Excel Formula:
=INDIRECT("'K:\Production\[Order Sheet 2020.xlsm]WK ("&$A$1&")'!$O"&ROW())
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

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