Dynamically referencing a sheet

arniebun

New Member
Joined
Jun 11, 2020
Messages
43
Office Version
  1. 365
Platform
  1. Windows
So I want to reference a sheet in another work book, with only the sheet name in a cell. So I have this formula that works =INDIRECT("[BOP.xlsx]" & $E$12 &"!M13") what I want to do is copy this formula down and as I do the value of M13 will change to M14 and so on. When I am dragging the cell down nothing is happening. I have even simplified the formula to reference the same workbook but different sheet and still the same. If I take the $ away from E12 that will change but M13 won’t.

Could anyone help me please, I have tried searching online but can’t find anything.
 
Trust centre settings have nothing to do with formulae.
 
Upvote 0

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.
Without any knowledge of you workbooks, sheet names & whats in E12, very difficult.
 
Upvote 0
=INDEX(INDIRECT("[BOP.xlsx]" & $C$16 &"!O:O"), ROWS($1:83), 1) With c16 being the name of the worksheet in BOP.xlsx to reference from all in the same folder. bop is open but getting #ref. I basically had to do a restart, i saved my work restarted my computer reopened everything as it was and got #ref, it happened before and i had to re write the whole sheet.
 
Upvote 0
Try
Excel Formula:
=INDEX(INDIRECT("'[BOP.xlsx]" & $C$16 &"'!O:O"), ROWS($1:83), 1)
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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