indirect function to different workbook named range

jdpjtp910

Board Regular
Joined
Jul 20, 2010
Messages
67
Ok, I have a table saved on Test1.xls named testTable. I have named the table using "Create from Selection" I am using the following formula to reference certain cells from the table.

=row1 col2 (testTable)

where row1 = row name being referenced
col2 = column being referenced
(testTable) = name of the table.

The formula gets the intersection point of the two named ranges and table name. I can get the formula to work fine within the worksheet. I now need to use that formula from a different worksheet named Diff.xls.

I have both worksheets open and type the following:

='Test1.xls'!row1 'Test1.xls'!col2 ('Test1.xls'!testTable)

Again that formula works fine. What I need to do is use an indirect function on the named range. So in Diff.xls I have cell A2 = 3

I want to do the following:
='Test1.xls'!row(indirect(A2)) 'Test1.xls'!col2 ('Test1.xls'!testTable)

I get a NAME? error. how can I get the indirect to work on a named range on a different workbook???

Or how do I use indirect on this formula to change the file name???

ANY help would be GREAT and thank you to everyone in advance.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
nevermind I got it..FINALLY

=INDIRECT("'[Test1.xls]106'! row"&$A$1&"") 'Test1.xls'!Col2 ('Test1.xls'!tableName)
 
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,281
Members
449,308
Latest member
VerifiedBleachersAttendee

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