Referencing a cell in another workbook; Formula from other cell references:

SevenOut

Board Regular
Joined
Jan 7, 2020
Messages
82
Office Version
  1. 2013
Platform
  1. Windows
I'm trying to reference a cell in another workbook stored in a different directory. Easy enough. However I am attempting the following:
I have a table, Col. A is a list of names. Col. B is where I need to reference a cell in the other workbook.
What I need is a to auto create the reference based on the name in Col. A so if the names change, so does the reference address.

Name
Doe, J.

Address to other workbook:
C:\Users\SOMEBODY\Management\Admin\TargetWorkbook.xlsm
(This workbook has a worksheet for each name, such as 'Doe, J.')
Always referencing A1

Normally this would be something like '=C:\Users\SOMEBODY\Management\Admin\[TargetWorkbook.xlsm]Doe, J.'$A$1
I need the "Doe, J." to change depending on the name in Col. A and the rest to remain static.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Not sure if this is the best method, but I think this works:
=INDIRECT("'C:\Users\SOMEBODY\Management\Admin\Work\[TargetWorkbook.xlsm]"&A5&"'"&"!$I$1")
 
Upvote 0
This is only working for an open workbook. Anyone know how to change it to reference a closed workbook?
 
Upvote 0
Looks like a solution:
=IFERROR(VLOOKUP(A1,' C:\Users\SOMEBODY\Management\Admin\Work\[TargetWorkbook.xlsm]Report'!$H$4:$I$20,2,0),"")

Report happens to be a worksheet in the target workbook with names and desired values of $I$1.
 
Upvote 0

Forum statistics

Threads
1,214,883
Messages
6,122,077
Members
449,064
Latest member
MattDRT

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