+ Reply to Thread
Results 1 to 7 of 7

Auto Fill X rows down depending on Number of rows in a table

  1. #1
    Registered User
    Join Date
    12-23-2017
    Location
    Kansas, USA
    MS-Off Ver
    2016 Mac
    Posts
    7

    Auto Fill X rows down depending on Number of rows in a table

    I have four columns.

    A B C D
    Company Name Company Address Dr Name Dr Address

    When I select a state from a drop down menu, a new set of data auto populates into this format. In this example, I have 32 company addresses and 15 Dr Names. What I need is to auto populate a new table that looks like this


    E F

    Company Address #1 Dr Address #1
    Company Address #1 Dr Address #2
    Company Address #1 Dr Address #3
    Company Address #1 Dr Address #4
    Company Address #1 Dr Address #5
    Company Address #2 Dr Address #1
    Company Address #2 Dr Address #2
    Company Address #2 Dr Address #3
    Company Address #2 Dr Address #4

    And so on, until the table has gone through all 32 companies and compared them against the same 15 Dr Addresses


    Can anyone help with this?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Auto Fill X rows down depending on Number of rows in a table

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown and reflect structure and type of data, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    12-23-2017
    Location
    Kansas, USA
    MS-Off Ver
    2016 Mac
    Posts
    7

    Re: Auto Fill X rows down depending on Number of rows in a table

    Here is some sample data. Hope this helps.
    Attached Files Attached Files

  4. #4
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Auto Fill X rows down depending on Number of rows in a table

    Hi, Markse! (and sandy666)

    Please, check this file. Blessings!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-23-2017
    Location
    Kansas, USA
    MS-Off Ver
    2016 Mac
    Posts
    7

    Re: Auto Fill X rows down depending on Number of rows in a table

    Johnmpl,

    This is fantastic. Thank you so much. I would have never arrived at this.

    Mark

  6. #6
    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,779

    Re: Auto Fill X rows down depending on Number of rows in a table

    @Johnmpl

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand.
    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.

  7. #7
    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,779

    Re: Auto Fill X rows down depending on Number of rows in a table

    @MarkSe

    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 fill rows based on number and formula
    By work4nutz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-06-2013, 07:23 PM
  2. Auto fill to last row (number of rows will vary) - SOLVED
    By artacus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 11:03 AM
  3. Dynamic Auto-Fill Range based upon Specific number of rows
    By a333 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2013, 03:54 AM
  4. Fill in rows depending on neighboring columns
    By holp in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2013, 03:52 PM
  5. Auto Fill for unknown number of rows...
    By jlworden in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-10-2013, 12:41 PM
  6. Auto-Fill for user-specified number of rows
    By sirluki in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2012, 05:16 AM
  7. Replies: 6
    Last Post: 10-04-2012, 11:12 AM
  8. Replies: 2
    Last Post: 05-29-2010, 03:28 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