Forum Discussion

warrevar's avatar
warrevar
Brass Contributor
Jul 24, 2019
Solved

Indirect Function - Referencing Table Columns

I know you can use the INDIRECT function to reference a cell from a different worksheet...

 

INDIRECT("'"&sheet&"'!"&name)

 

...But I'm wondering if you can use it to reference a column heading in a named table from a different worksheet? I think the syntax would look something like this...

 

INDIRECT("'" & Table name? &"' &[Column name])

 

... Where the table name is text and the column name is a cell reference.  However, I can't quite get it to work.  Any suggestions, internet?  

 

  • warrevar's avatar
    warrevar
    Jul 25, 2019

    SergeiBaklan Thank you!  I also needed to put the name of the table in quotes so this ended up being the final syntax...

     

    INDIRECT( "TableName" & "[" & ColumnName & "]") 

     

3 Replies

    • warrevar's avatar
      warrevar
      Brass Contributor

      SergeiBaklan Thank you!  I also needed to put the name of the table in quotes so this ended up being the final syntax...

       

      INDIRECT( "TableName" & "[" & ColumnName & "]") 

       

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        warrevar 

        TableName and ColumnName could be references to cells, named cells, simply texts. If you consider first as text when INDIRECT("TableName[" & ColumnName & "]").

Resources