+ Reply to Thread
Results 1 to 2 of 2

Dynamic reference to Table Column header

  1. #1
    Registered User
    Join Date
    06-09-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2016
    Posts
    16

    Dynamic reference to Table Column header

    Hi everyone,

    I have some challenge to create a formula to get a reference to a table column header,

    =SUMIFS(Table9[[#All],[ExtendedCost]], Table9[[#All],[Subscription Name]], A4, Table9[[#All],[Product]], "<>Apple")

    Since I have multiple tables in different sheet named from "Table 1", Table 2", "Table 3", ... and all table structure/header are the same, and now I'm creating a summary on other sheet to get a total value based on the criteria based above, but wanna to change it to a reference rather than changing the Table Name each time manually when creating a new table.

    Table Name: Table 9
    ExtendedCost Subscription Name Product
    $4.00 Sub1 Apple
    $55.00 Sub2 Orange
    $11.00 Sub3 Banana

    Can someone guide me on that. Thanks and appreciated.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Dynamic reference to Table Column header

    Try it like this:

    =SUMIFS(INDIRECT(A1&"[[#All],[ExtendedCost]]"), INDIRECT(A1&"[[#All],[Subscription Name]]"), A4, INDIRECT(A1&"[[#All],[Product]]"), "<>Apple")

    where A1 contains the text Table9.

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dynamic Table based on Header
    By markusvirus in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-23-2017, 04:06 AM
  2. [SOLVED] Map Columns With Different Header Names Using A Dynamic Table
    By jlanderson18 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2016, 09:04 AM
  3. dynamic excel table header / column selection
    By carsto in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2016, 11:25 AM
  4. [SOLVED] Find specific value in table and return header row and header column value
    By nelwan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2013, 01:35 AM
  5. [SOLVED] Extract the column header given the row header and highest value in a subset of a table
    By pguarino in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2013, 02:05 AM
  6. [SOLVED] Create Dynamic Column Lookup Reference based on Table Header
    By jeversf in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2013, 12:49 PM
  7. How do I set a dynamic range based on the column header?
    By gimiv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2007, 03:25 PM

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