+ Reply to Thread
Results 1 to 7 of 7

Auto expand a table based on the number of populated rows in another sheet

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    6

    Auto expand a table based on the number of populated rows in another sheet

    I have 3 sheets in an Excel workbook. A full product list is on Sheet 3, on Sheet 2 I have a table that uses dropdown buttons so that the user can scroll through the product list and select the product they want to include, on Sheet 1 I have a form that I would like to populate with the information from the table on Sheet 2.

    The tricky part is that I only want information from certain columns of the table on Sheet 2 to be included on Sheet 1, also there will always be a variable number of rows in the table on Sheet 2. So is it possible to link a single column from a table on Sheet 2 to a column on Sheet 1? Also is it at all possible to have the column on Sheet 1 expand (automatically add rows) to match the number of rows that are in the table that is on Sheet 2?

    I had originally thought there would be a simple solution for this but now I'm thinking it may not be possible to acheive this in Excel. Any help, suggestions or insight you can provide would be greatly appreciated.

    Thank You,
    Geeky UU

  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,724

    Re: Auto expand a table based on the number of populated rows in another sheet

    It would be helpful if you posted an example workbook, and in there show what you would like to achieve.

    Pete

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Auto expand a table based on the number of populated rows in another sheet

    Please find a copy of my sample workbook in attachment. Thanks for the advice.
    Attached Files Attached Files

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

    Re: Auto expand a table based on the number of populated rows in another sheet

    I'm just going out now - I'll take a look later if I get chance.

    Pete

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

    Re: Auto expand a table based on the number of populated rows in another sheet

    It looks like you want to expand row 36 on the SLI sheet to accommodate however many rows you have on the Products in Shipment sheet. A formula cannot insert a new row, so if you wanted a formula solution the approach would be that you pre-define the maximum number of rows that you are likely to need and put formulae in there to bring the data across, and then you could apply autofilter to hide the rows that are not needed (i.e. that are blank). It should be noted, though, that this is not an automatic feature, so if you were then to add a new record to the Shipments sheet you would have to manually refresh the filter to have that record displayed on the SLI sheet.

    It might be better for you to seek a VBA solution to this problem.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    09-12-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Auto expand a table based on the number of populated rows in another sheet

    I appreciate you taking a look and the input Pete. I think I knew I would have to get into VBA to acheive what I wanted but was trying desprately to avoid it.

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

    Re: Auto expand a table based on the number of populated rows in another sheet

    Well as I said, it CAN be done with a formula-based solution - it's just that it won't be fully automatic to hide the blank rows.

    Pete

    P.S. If you think this thread is now done, can you mark it as Solved - the FAQ describes how to do this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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