+ Reply to Thread
Results 1 to 3 of 3

Dynamically change Table name in Formula based on cell reference

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Tetbury, England
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    105

    Dynamically change Table name in Formula based on cell reference

    Morning Everyone...again! Second Post of the Morning!

    I have a Sheet called 'MASTER SHEET', and in Column A (from Row 4 Downward) I have a list of names.

    I then have a sheet for each of those names (named the same as the cell - so they match exactly) - and on each of those sheets there is an identical table (in terms of columns), and the table is named exactly the same too.

    i.e. if Cell A4 on 'MASTER SHEET' says 'Chris' then there is a sheet called 'Chris' and also a table within that sheet called 'Chris'.

    What I'm trying to do is have a formula i can drag down the column that looks at the name in Column A - to dynamically change the table it looks at?

    I'm also trying to do this without using 'INDIRECT' as seems so memory hungry and refreshes constantly...

    I would have attached template; but has loads of links to the web and wasn't sure if people would want this!



    Chris

  2. #2
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Tetbury, England
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    105

    Re: Dynamically change Table name in Formula based on cell reference

    Sorry - forgot example formula...

    One of them is as follows:

    Please Login or Register  to view this content.

    Then i'd just want the bit that says 'Torres' to change to whatever the contents of a cell in Column A on 'MASTER SHEET' is.

    Hope this helps!



    Chris

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamically change Table name in Formula based on cell reference

    However, we cannot work with invisible sheets.... Prepare a SAMPLE sheet (10-20 rows) that shows your problem.

    However, I suspect INDIRECT is your only option.

    The sensible approach, however, would be to have them ALL on a single sheet, with an additional column for the names. Excel loves big, flat, boring tables and works with them really quickly.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. Dynamically Change Table Name in a Structured Reference Using Index+Match??
    By exceldemon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2021, 09:52 PM
  2. Dynamically change x & y axis mins and maxs based on dynamically changing data?
    By udf463 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2021, 03:19 PM
  3. Dynamically change table size that contains formula
    By Vj Raj in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 07-16-2021, 09:40 AM
  4. [SOLVED] Change SheetName reference in formula based on cell value
    By Gr33nMM in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-29-2021, 08:45 AM
  5. Hyperlink to select correct cell reference in Pivot table data Dynamically.
    By sanjay.k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2020, 09:46 AM
  6. Replies: 2
    Last Post: 08-02-2020, 11:16 AM
  7. Change source of pivot table dynamically based on sheet name
    By jeroenft in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2016, 11:23 AM

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