+ Reply to Thread
Results 1 to 7 of 7

Auto populate master list

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Auto populate master list

    I am looking for either a macro or some formula that will auto populate a master list. I have attached a small example of my master list. I have multiple tabs, all named for what is in column A of each sheet. Each month I get a new list to paste into Sheet2, I am looking for a way to have each sheet look into sheet2 for the value in column A and copy and paste, or even better cut and paste, the rows that have the same value in Column A, into the next field of each sheet.

    search Example is what I have before
    search Example_outcome is what I am looking for.

    I don't really know where to start with this one.

    Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Auto populate master list

    You'd be better with a VBA solution that deletes data from sheet2 and copy it in the appropriate one. This way, you end up with en empty sheet2 which is good for your next month.

    If the sheet is not yet created, would you like the macro to create it automatically?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Auto populate master list

    The following macro should do it for you.
    It delete data from Sheet2 and create sheets if they don't exist.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Auto populate master list

    This works great. Thank you.

    One question, is it possible to just look through the worksheets and see if the value in A2 exisits? The name of the sheets change month to month to include a percentage so for instance last month the a sheet would be named 071-000-438 (20.73) and next month it could be 071-000-438 (22.73).

  5. #5
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Auto populate master list

    I don't understand your question here. Can you explain?

  6. #6
    Registered User
    Join Date
    09-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Auto populate master list

    Your code worked perfectly for the example that I posted. But what I am wondering is if it will work for workbook that has worksheets that automatically change sheet names. For Instance, all my worksheets are named with a part number such as 071-000-438 and a changing percentage such as (20.37). So a sheet will be named something like "071-000-438 (20.37)" for the month of January. Then during the next month, that percentage will change and the tab name will also change. So in February that percentage becomes 23.73, the tab name will now be "071-000-438 (23.73)". Your code looks for a sheet named "071-000-438" and if it does not find one, it creates one. I am wondering if this can be modified to look for a sheet that just contains "071-000-438".

  7. #7
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Auto populate master list

    Probably, but where would you put your data? In which sheet? The one with 23.73% or the one with 20.37%?
    Why do you want to create multiple sheets of the same part number? If it is for the month, why don't you add the month name at the part number?

+ 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-Populate Data From Master List to Separate Sheets When Two Criteria's Are Met
    By centibttrfly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-09-2014, 11:18 AM
  2. [SOLVED] Auto Populate Worksheets From A Master List
    By Im1HappyGirl in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-27-2013, 10:11 AM
  3. Auto-populate from other sheets in a master, than auto total duplicates
    By Melyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2013, 01:48 PM
  4. Auto-populate to Master list from Multiple sub sheets
    By 614984 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2012, 04:18 PM
  5. Replies: 3
    Last Post: 02-28-2012, 11: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