+ Reply to Thread
Results 1 to 7 of 7

Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

  1. #1
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

    Hi all

    I have a file where routinely I'll create a new sheet and put in entries into that sheet. The "Master Sheet" is a listing of all of the entries from each of the sheets, which right now I am manaully copy and pasting once the sheets are complete. I've attached a sample of the file. Here is the synopsis:

    --------------------------------------------

    Master Sheet
    The blue cells would contain a formula that autopopulates these cells when info is put in the appropriate sheets.
    Approximately 20 columns worth of data would need to autofill. I merely listed 6.

    Sheet - Template
    This is the sheet I copy and would Rename as Sheet - C (when needed) and fill with new data.


    Sheet - A
    Twelve lines were filled in, and autopopulated in the master sheet once a YES was placed in "column L"
    The grey cells is what MAY be filled in.

    --------------------------------------------

    If anything else needs clarrification, please let me know! I'd really appreciate any help. I'm not really getting anywhere on my own.

    Thanks!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

    if i understand you correctly, and if all of the data on the existing - and new - sheets is in the same format/sequence, try this approach.

    if you add a blank worksheet at the start and end of your data sheets, and call them Start and End, then when you enter your calcs, you coujust enter =sum('start:End'!C12) or whatever your references are. this way, you can add or remove sheets as needed, and it will add across all the sheets you need it to, and keep the totals as the data sheets change. make sure your "Master" sheet is before the Start sheet though
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

    Thanks for the reply.
    Yes, all of the data on the existing and new sheets are in the same format/sequence.
    If I am understanding you correctly, I don't think this will solve my issue.

    I am not wanting to add across sheets. Each entry is unique and would be displayed seperately. I simply want all entries in Sheet-A, Sheet-B, and any additional sheets, to appear in the Master Sheet once they are complete (a YES in column I).
    There order is not that important, simply that when Yes in put in 'Sheet - A'!$I$10, cells 'Sheet - A'!B10:G10 automatically appear in the master sheet as a completed entry. I'm currently attempting a combination of "Index" and "Vlookup" function, but having difficulty only showing completed entries, not blank lines.

    Thanks for your reply though. Hopefully my request is a bit more clear.

  4. #4
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

    This relatively simple formulas tinker should bring you quite close to your intents ..

    In Sheet - A,
    Put in J10: =IF(I10="Yes",ROWS($1:1),"")
    Copy down to J40

    Then in Master,
    Put in B10:
    =IF(ROWS($1:1)>COUNT('Sheet - A'!$J$10:$J$40),"",INDEX('Sheet - A'!B$10:B$40,SMALL('Sheet - A'!$J$10:$J$40,ROWS($1:1))))
    Copy across to G10, fill down to cover the same extent as per col J in Sheet - A, viz down to G40. This will auto-extract only the lines indicated as "Yes" in col I in Sheet - A over, all neatly bunched at the top

    You could extend it likewise for the other source sheets, and replicate the auto-extracts into Master (just Edit>Replace with the other sheetnames in the point extract formula, then copy across/fill down)
    Last edited by Max, Singapore; 08-13-2012 at 10:44 AM.

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

    Thanks for the suggestion Max. One aspect your solution is missing is the ability for all the rates to appear there at the same time automatically when adding a new entry into ANY sheet, so manually replacing the sheet names would not be ideal.

    I've attached a file with the solution I came up with. In the "Master" Sheet I used a countif function to determine the number of quotes for each sheet. If a new entry is added into Sheet-01, then the number of quotes in column G will change, and the number of entries displayed in the "Master" table will change. In column J, once the number has reached the # of quotes (ex. J21), the formula knows to start on the next line with the new Sheet #.

    I've included a lot of helper columns to make it easy to change if necessary.

    This master sheet is to make it easy for me to see what entries are actually complete, and then daily (or weekly) copy and paste the master sheet and paste it in another file with all entries. The ONLY feature I am missing right now is an ability to make the Master table no longer show entries i have already copy & pasted into the other file. Including a helper column in the master sheet is what i think i need, but how exactly it would work is beyond me. if anyone has any suggestions on this, please let me know.

    Thanks!
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

    > .. One aspect your solution is missing is the ability for all the rates to appear there at the same time automatically when adding a new entry into ANY sheet, so manually replacing the sheet names would not be ideal.

    Ah, but that's not correct to say. You probably mis-understood the implementation steps outlined in my earlier post. You could always copy/propagate the extract formulas for each child sheet in sections below in Master (I gave you the formula/steps to do for Sheet A). That was what I meant. The extract formulas are all similar, you just need to change it to point to the other child sheetnames, then copy across/fill down as required for each child sheet. If you do this, then your Master will immediately reflect all the lines from any child sheet with "Yes" indicated in col I - its fully automated

  7. #7
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Autopopulate table in Sheet 1 when entries are put into sheet 2, 3, 4, etc...

    I figured that was the case. As I try and wrap my head around your method, I'm beginning to think it may be a better solution, but what I have is working, so... I'll stick with the devil I know. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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