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.
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

jdpjtp910

Board Regular
Joined
Jul 20, 2010
Messages
67
nevermind I got it..FINALLY

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

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,635
Messages
5,512,528
Members
408,902
Latest member
VicRattlehead

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top