+ Reply to Thread
Results 1 to 3 of 3

Excel table - using a formula in a structured reference

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    23

    Excel table - using a formula in a structured reference

    Hi,

    Let's say that I have an "official" Excel table with the number of employees per department.

    Then I have many other sheets, one sheet per department actually, each containing complex formulas.

    I would like to use structured references in these formulas, like this:

    Employees[[#All],[DeptSales]]

    What I would like to do is to replace DeptSales in my formula by the cell A1 because there is the name of the department.

    I tried Employees[[#All],[indirect(A1)]] but it doesn't work.

    The reason why I want to do this is that there are many departments so I would like only to change the text in the cell A1 and not need to adapt all the formulas.

    Any ideas? Please?

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Excel table - using a formula in a structured reference

    Hi,

    Not too sure without seeing your data, but perhaps you can adapt this example to meet your needs?

    Assuming my data table is called Table1 and cell A1 contains the text "DeptSales" then these two formulae will give the same result:

    =SUM(Table1[DeptSales])

    =SUM(INDIRECT("Table1["&A1&"]"))

    Hope that helps

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    05-16-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Excel table - using a formula in a structured reference

    It worked like a charm! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1