+ Reply to Thread
Results 1 to 5 of 5

How to auto generate a table?

  1. #1
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    How to auto generate a table?

    Hi all,

    Does anyone know of a formula that would auto generate the information for a table? I've got a set of data that has a VLOOKUP on it that pulls back the relevant numbers to the cell. what i want to know is, if i increase the data type in my source, can i get the table to automatically put it into and apply the lookup?

    Probably not explained this well, so i've attached an example - the first sheet shows the table with the lookup and the second is the data source (which is manually entered), So the lookup works for all the types it's set to find. but in this example bananas are entered into the source data but don't have a line on the table sheet. Is there a way of getting excel to add this to the table from the source data or do i need to type it in?

    Cheers.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-30-2018
    Location
    Hastings, NE
    MS-Off Ver
    MS 365
    Posts
    74

    Re: How to auto generate a table?

    Is this what you're looking for? I used an =indirect data validation.

    test.xlsx

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: How to auto generate a table?

    I interpreted a bit differently.
    1. Convert the source data into an Excel Table. The reference ranges will auto resize to fit the data.
    2. In the attached I changed the default name Table1 to Source_Table. (See Name Manager)
    3. Do the same with the summary.
    4. This formula in A2 of Sheet1.
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    5. Leave the VLOOKUP alone.


    Is this what you envision?

    A
    B
    1
    Summary Fruits
    Summary Counts
    2
    bananas
    26
    3
    berries
    45
    4
    pears
    85
    5
    cherries
    18
    6
    oranges
    18
    7
    apples
    98
    Attached Files Attached Files
    Dave

  4. #4
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Re: How to auto generate a table?

    Quote Originally Posted by FlameRetired View Post
    I interpreted a bit differently.
    1. Convert the source data into an Excel Table. The reference ranges will auto resize to fit the data.
    2. In the attached I changed the default name Table1 to Source_Table. (See Name Manager)
    3. Do the same with the summary.
    4. This formula in A2 of Sheet1.
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    5. Leave the VLOOKUP alone.


    Is this what you envision?

    A
    B
    1
    Summary Fruits
    Summary Counts
    2
    bananas
    26
    3
    berries
    45
    4
    pears
    85
    5
    cherries
    18
    6
    oranges
    18
    7
    apples
    98
    ...So there's a load of formula going on there I've not come across before...., will spend time learning what they are and how they work so i can adapt them to my main sheet. Once again, many thanks.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: How to auto generate a table?

    You are welcome. Glad to help.

    Weaselwithagun, in the future please don't quote whole posts especially when immediately following the post you are responding to. In fact this is actually a forum rule:

    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Auto Generate Additional Template from Expanding Table
    By schs4 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2016, 01:24 PM
  2. We need to generate an auto assign ranking place using data from a table.
    By fbarrio73 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2015, 11:22 PM
  3. Auto generate SR NO
    By sushnaya in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2015, 05:38 AM
  4. Replies: 0
    Last Post: 02-12-2014, 08:22 AM
  5. Auto generate top 5 league table
    By phillipmcmahon in forum Excel General
    Replies: 5
    Last Post: 03-15-2011, 03:40 PM
  6. Excel spreadsheet table auto generate fixtures
    By pronane in forum Excel General
    Replies: 1
    Last Post: 12-17-2008, 05:41 PM
  7. Auto Generate Table
    By techtsunami in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2006, 11:33 PM

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