+ Reply to Thread
Results 1 to 9 of 9

Dynamic list of all table headers fromanother tab

  1. #1
    Registered User
    Join Date
    02-23-2020
    Location
    Boston
    MS-Off Ver
    Office 2019
    Posts
    6

    Dynamic list of all table headers fromanother tab

    Hi all,

    I have a table that lists project names across the top (i.e. project 1, project 2, project 3, etc).

    I would like a an automatically generated list on another tab that lists all of these project names down a column.

    I especially need this list to continue to add new project names IF I add a new column to the original table with a new project (aka adding a Project 4 column)

    Any leads??

  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 list of all table headers fromanother tab

    Assuming your project names are in row 1 of Sheet1, you could use this formula in A2 of Sheet2:

    =IF(ROWS($1:1)>COUNTA(Sheet1!$1:$1),"",INDEX(Sheet1!$1:$1,ROWS($1:1)))

    then copy down as far as you like.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Dynamic list of all table headers fromanother tab

    Yes - same suggestion as your other thread. Different things, but we can deal with them both there once you have provided a workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic list of all table headers fromanother tab

    Hi with the project names from say A1:Z1 on Sheet1, on Sheet2 in say A5 and copied down enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Adjust the ROW()-4 as necessary for diferent starting points on Sheet2 or if the project names on Sheet1 start other than in A1
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    02-23-2020
    Location
    Boston
    MS-Off Ver
    Office 2019
    Posts
    6

    Re: Dynamic list of all table headers fromanother tab

    Thank you all!!

    I tried:
    =INDEX(Sheet1!$A$1:$Z$1,1,ROW())

    and it worked but required me to drag down the function every time a new column was added to the master table. I am hoping for something a bit more automatic.

    I have attached a simple sample workbook so you can see what I am going for under the "Report - All projects" Tav
    I am hoping to only ever edit the master tab and have the report tab automatically add the new project name, if a column is added.

    Means a lot to get help on this! I've been at it for 7 hours today and can't seem to get it.
    Attached Files Attached Files

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic list of all table headers fromanother tab

    Is there any reason why you can't first set the options for the master sheet to display zero values as blank,
    then use the formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    in B4 and copy it down as many rows as yuo are ever likely to have contracts.

    Anything more automatic would require a macro to analyse the column headings, identify any new column and add it to the list.
    Are you comfortable with using macros?

  7. #7
    Registered User
    Join Date
    02-23-2020
    Location
    Boston
    MS-Off Ver
    Office 2019
    Posts
    6

    Re: Dynamic list of all table headers fromanother tab

    I see what you mean! And I think you're right - I am going to need to use a macro.

    I haven't ever used one before but I think it's necessary. Do you think I could do one simply?

  8. #8
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Dynamic list of all table headers fromanother tab

    maggieapple . You can convert data to simple table and use pivote table based on it. PowerQuery could be use also
    Attached Files Attached Files

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic list of all table headers fromanother tab

    Quote Originally Posted by maggieapple View Post
    I see what you mean! And I think you're right - I am going to need to use a macro.

    I haven't ever used one before but I think it's necessary. Do you think I could do one simply?
    Here's one approach. The attached workbook uses the macro shown below

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. List data from a table with multiple headers? Index, Small, Lookup??
    By KDB13 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2019, 08:53 AM
  2. Generate table with dynamic row and column headers
    By theorize99 in forum Excel General
    Replies: 3
    Last Post: 05-30-2018, 02:20 AM
  3. Dynamic concat of table headers
    By Otto62 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2017, 07:28 AM
  4. Create a dynamic list with sub-headers
    By ericthomson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2017, 08:38 PM
  5. autofilter method of range class failed -header has tables headers and non table headers
    By naveen.acheanz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2016, 08:21 AM
  6. [SOLVED] Dynamic Data Validation from Table Headers
    By dsm63 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2014, 01:49 AM
  7. Replies: 0
    Last Post: 09-11-2013, 09:54 AM

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