+ Reply to Thread
Results 1 to 14 of 14

Tables Feeding data into a Further Table

  1. #1
    Forum Contributor
    Join Date
    12-13-2011
    Location
    Yorkshire, UK
    MS-Off Ver
    Office365
    Posts
    183

    Tables Feeding data into a Further Table

    Hi,

    I was wondering if someone could help me out as my overall knowledge of excels higher functions is virtually non-existent. I need to put together a number of worksheets, each worksheet is to record project information that's happening at our production sites and all the tables are uniform in design. There also needs to be one 'master sheet' in which all the information added on the lower sheets is automatically added.

    So basically I need to have four tables on separate sheets that feed information in to one table on a further sheet.

    Can anyone tell me how to do this?
    Attached Files Attached Files

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

    Re: Tables Feeding data into a Further Table

    Take a look at the file I submitted to this thread:

    http://www.excelforum.com/excel-gene...html?p=3073438

    and see if you can adapt it to your requirements.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    12-13-2011
    Location
    Yorkshire, UK
    MS-Off Ver
    Office365
    Posts
    183

    Re: Tables Feeding data into a Further Table

    Thanks Pete,

    I've taken a look and it looks like it could be changed to do what I need but I'll be honest and say I'm not confident enough with the formulas to change them to get it to do what I want. Any chance of a few pointers??

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Tables Feeding data into a Further Table

    the attached macro will consolidate all rows from all tabs into master, I added the tab name in column A for clarity
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-13-2011
    Location
    Yorkshire, UK
    MS-Off Ver
    Office365
    Posts
    183

    Re: Tables Feeding data into a Further Table

    Thanks RCM, that does the job. Just wondering if there was anyway of getting the macro to run automatically? At the moment I have to 'macros -> view macros -> run' with each addition/change.

    Also, just noticed that when you delete the information from the subsheets, it doesnt delete it from the master. Is there anyway of doing this too? Sorry to be a pain and I'm happy to do it myself if someone points me in the right direction.
    Last edited by JasonMcQueen; 01-10-2013 at 10:56 AM.

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Tables Feeding data into a Further Table

    Yes there are ways to do that. This is the brute approach in which everything is copied.
    For the the brute approach I would suggest a button to be clicked or a CTRL-something to trigger the macro

    A more sophisticated way is to "add/update" only the new records or changed records , but that is another ball game...

  7. #7
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Tables Feeding data into a Further Table

    enclosed is the button solution (it is located in Master in the B1 column vicinity)
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-13-2011
    Location
    Yorkshire, UK
    MS-Off Ver
    Office365
    Posts
    183

    Re: Tables Feeding data into a Further Table

    Thanks, thats great. I can always delete the finished projects from the master. Thanks for your help.

  9. #9
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Tables Feeding data into a Further Table

    If you like just mark or give the column details of the finished projects and they could be excluded from the brute transfer...

  10. #10
    Forum Contributor
    Join Date
    12-13-2011
    Location
    Yorkshire, UK
    MS-Off Ver
    Office365
    Posts
    183

    Re: Tables Feeding data into a Further Table

    Okay, now I really feel out of my depth, mark them how exactly?

  11. #11
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Tables Feeding data into a Further Table

    Include a "FINISHED" column on the right in the project tables and mark them with anything. It will only transfer those records with the an empty FINISHED cell
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    12-13-2011
    Location
    Yorkshire, UK
    MS-Off Ver
    Office365
    Posts
    183

    Re: Tables Feeding data into a Further Table

    For some reason it throws up a run time error

  13. #13
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Tables Feeding data into a Further Table

    The A1 cell in the MASTER tab should be 5 (its the starting row)

  14. #14
    Forum Contributor
    Join Date
    12-13-2011
    Location
    Yorkshire, UK
    MS-Off Ver
    Office365
    Posts
    183

    Re: Tables Feeding data into a Further Table

    I placed a 5 in the A1 cell but for some reason why I press consolidate it deletes the five after updating which means that you have to re enter A1 as 5 each time to avoid a run time error. Really sorry about this, you've done more than enough already.

+ 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