+ Reply to Thread
Results 1 to 13 of 13

Formula to extract data from multiple worksheets AND auto-update when adding new worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Formula to extract data from multiple worksheets AND auto-update when adding new worksheet

    Hi all,

    I input data into a workbook at the end of each week with each worksheet representing the entire week (Monday through Sunday). I have about four weeks worth of data with each week on its own worksheet (the worksheets are the same, based off of a template I created...I just plug in the data and move on).

    I would like to have a master or summary sheet that captures individual sections of data pulled from each respective worksheet and for it to be able to auto-update when I add a new worksheet (i.e., when adding a new week into my workbook). This way I can see a cumulative average or sum of a specific section of data.

    I was messing around with the =VLOOKUP function and naming data ranges from a specific worksheet, but can't seem to figure out how to add a new worksheet that will update the master sheet automatically.

    What is the most efficient way to do this?

  2. #2
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Hi,
    Quote Originally Posted by seanpod View Post
    ......
    I input data into a workbook at the end of each week with each worksheet representing the entire week (Monday through Sunday). I have about four weeks worth of data with each week on its own worksheet (the worksheets are the same, based off of a template I created...I just plug in the data and move on).

    I would like to have a master or summary sheet that captures individual sections of data pulled from each respective worksheet and for it to be able to auto-update when I add a new worksheet (i.e., when adding a new week into my workbook)........
    What is the most efficient way to do this?
    . I cannot help with a Formula. Would you consider a VBA solution? I am not sure if a code could be written to kick in when you add a sheet, but a code could usually be given that would run when you wish to update a Master Sheet.

    Alan
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  3. #3
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Quote Originally Posted by Doc.AElstein View Post
    Hi,


    . I cannot help with a Formula. Would you consider a VBA solution? I am not sure if a code could be written to kick in when you add a sheet, but a code could usually be given that would run when you wish to update a Master Sheet.

    Alan
    Hi, yes I would consider a VBA solution if one is available.

  4. #4
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Hi seanpod,
    . Sounds like the other Guys have a better idea on the best, most efficient way to do this, so their ideas Yous should consider first,. I have little experience there and cannot comment.
    Quote Originally Posted by seanpod View Post
    Hi, yes I would consider a VBA solution if one is available.
    . As for VBA. If the basic idea were to use “VBA to consolidate multiple sheets to master sheet” – just try that as a search in Google or Google with Forums ( See my signature for how to do that.. for example Google search with site:ExcelForum.com consolidate multiple sheets to master sheet )
    .......... you will find it is a very common requirement.
    . You may be lucky and find one that does exactly what you want , but you should find one that is close.
    . But for specific help here with getting a code for you, you would need to give us some test data to work on , reduced greatly in amount ( we would call this the “Before” ). But importantly we then want to see a hand filled result, which is what h should then look like after running of the macro. We would call this the “After”. We need a clear picture ( Not IMAGES ) of what you have before and what you want after with reduced test data.

    . So simply provide a clear before and after. In your case I guess a couple of files would be appropriate. The Before would have a few sheets in, the master and some others. The After would, if I have understood correctly have an Extra sheet and the master would be modified by you by hand as you wish the macro to do for you.
    . I would consider first the other ideas, but then is you do want to have a go at a VBA solution, then supply me that info and I will take a look sometime in the next couple of days for you.

    Alan....

    To summarise.

    . The Before or Befores, should look just as it / they does before running of any macro.
    .
    . The After or Afters, should be hand filled by you so that it they / looks exactly as you want it to After running of any macro, based on the actual sample data in the Before / or Befores
    . Make sure there is just enough data to demonstrate your need. Remember to desensitize the data if necessary, but use the typical Format type and choose your data carefully so that it can be used to test all possible scenarios.
    ...


    Alan

    P.s. some ways to provide that info: ( Most people use . 2a )
    . 1 ) use the Forum Tools in my signature to produce screen shots we can copy to a spreadsheet ( NO IMAGES ! )
    . 2 ) Post Files
    . 2 a) To Attach a sample workbook:
    View Pic
    http://www.excelforum.com/members/da...ch-a-file.html
    http://tinyurl.com/oenwprw
    . 2 b) Send over a file sharing site, such as this free thing
    Box Net,
    https://www.box.com/
    http://tinyurl.com/7chr7u8
    . Remember to select Share and give the link / links they give..

    . 3 ) - Up left in the Thread editor is a Table icon. Click that, create an appropriately sized table and fill it in. (To get the table icon up in the Reply window you may need to click on the “Go Advanced” Button next to the Reply Button)

    . 4) Only as a very last resort, P.M. me and i will reply with my Email Addressee so you can send me a file
    ** To PM me, click on my name in the left hand margin when you are logged in, the rest should be obvious.

  5. #5
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Quote Originally Posted by Doc.AElstein View Post
    Hi seanpod,
    . Sounds like the other Guys have a better idea on the best, most efficient way to do this, so their ideas Yous should consider first,. I have little experience there and cannot comment.

    . As for VBA. If the basic idea were to use “VBA to consolidate multiple sheets to master sheet” – just try that as a search in Google or Google with Forums ( See my signature for how to do that.. for example Google search with site:ExcelForum.com consolidate multiple sheets to master sheet )
    .......... you will find it is a very common requirement.
    . You may be lucky and find one that does exactly what you want , but you should find one that is close.
    . But for specific help here with getting a code for you, you would need to give us some test data to work on , reduced greatly in amount ( we would call this the “Before” ). But importantly we then want to see a hand filled result, which is what h should then look like after running of the macro. We would call this the “After”. We need a clear picture ( Not IMAGES ) of what you have before and what you want after with reduced test data.

    . So simply provide a clear before and after. In your case I guess a couple of files would be appropriate. The Before would have a few sheets in, the master and some others. The After would, if I have understood correctly have an Extra sheet and the master would be modified by you by hand as you wish the macro to do for you.
    . I would consider first the other ideas, but then is you do want to have a go at a VBA solution, then supply me that info and I will take a look sometime in the next couple of days for you.

    Alan....

    To summarise.

    . The Before or Befores, should look just as it / they does before running of any macro.
    .
    . The After or Afters, should be hand filled by you so that it they / looks exactly as you want it to After running of any macro, based on the actual sample data in the Before / or Befores
    . Make sure there is just enough data to demonstrate your need. Remember to desensitize the data if necessary, but use the typical Format type and choose your data carefully so that it can be used to test all possible scenarios.
    ...


    Alan

    P.s. some ways to provide that info: ( Most people use . 2a )
    . 1 ) use the Forum Tools in my signature to produce screen shots we can copy to a spreadsheet ( NO IMAGES ! )
    . 2 ) Post Files
    . 2 a) To Attach a sample workbook:
    View Pic
    http://www.excelforum.com/members/da...ch-a-file.html
    http://tinyurl.com/oenwprw
    . 2 b) Send over a file sharing site, such as this free thing
    Box Net,
    https://www.box.com/
    http://tinyurl.com/7chr7u8
    . Remember to select Share and give the link / links they give..

    . 3 ) - Up left in the Thread editor is a Table icon. Click that, create an appropriately sized table and fill it in. (To get the table icon up in the Reply window you may need to click on the “Go Advanced” Button next to the Reply Button)

    . 4) Only as a very last resort, P.M. me and i will reply with my Email Addressee so you can send me a file
    ** To PM me, click on my name in the left hand margin when you are logged in, the rest should be obvious.
    Thank you for the thorough reply, I will certainly consider searching the website for relevant information, and should I not find a suitable solution then I will consider posting here again or to you through PM.

    Thanks!

  6. #6
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Hi seanpod
    Quote Originally Posted by seanpod View Post
    ....I will certainly consider searching the website for relevant information, and should I not find a suitable solution then I will consider posting here again or to you through PM......!
    . Ok good luck with the searching, there is an amazing amount of info out there!!!!

    . Contact me through the Thread, as then others can keep up with the Thread. I am subscribed so I should get Emails notification of the reply. However there are problems with the Forum Software and Email Notifications, so PM me as well. But do make sure you also reply in the Thread.
    . If you find a code that comes close or you think could be modified to your requirements then post that too ( In Code Tags please! – See my Signature below )

    Alan

    P.s. When replying as you did, please chop out all but a small relevant or summarising bit of the quote, as i did with yours... otherwise the Thread is unnecessarily cluttered and difficult to read.
    Thanks

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Why not all data on 1 worksheet and after that use pivot table to analyze the data.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Quote Originally Posted by oeldere View Post
    Why not all data on 1 worksheet and after that use pivot table to analyze the data.
    . Sounds good ( I cannot help there either as i know nothing about Pivot Tables )

  9. #9
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Quote Originally Posted by oeldere View Post
    Why not all data on 1 worksheet and after that use pivot table to analyze the data.
    I thought about that, but the amount of data is too much. Putting all data on one worksheet and it's going to get too cluttered.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    What is the most efficient way to do this?

    I think all in one sheet will be the most efficient way.

    I thought about that, but the amount of data is too much.

    1) > 1 mln rows for the data you descipe ?

    Putting all data on one worksheet and it's going to get too cluttered.

  11. #11
    Registered User
    Join Date
    02-01-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    26

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    try using "slicers" (can be used if data is in a table or pivot table) i've found them to be pretty quick and efficient with large sets of data

  12. #12
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Re: Formula to extract data from multiple worksheets AND auto-update when adding new works

    Quote Originally Posted by Simon3 View Post
    try using "slicers" (can be used if data is in a table or pivot table) i've found them to be pretty quick and efficient with large sets of data
    Unfortunately all of my data is arranged in a template that does not follow a table format; rather, it is presented in a way that makes it more appealing to the eye (since a lot of different people are reading it).

+ 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. Macro to Auto-fill Data from a Master Worksheet to Multiple Worksheets
    By ntle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2015, 03:47 PM
  2. Need to extract data from multiple worksheets and place in a separate worksheet
    By chuck_p in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-03-2014, 01:56 PM
  3. Data validation disappears with multiple worksheet auto update
    By Keiralea in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2013, 03:29 PM
  4. Replies: 1
    Last Post: 05-03-2012, 05:59 PM
  5. Extract data from multiple worksheets into one worksheet
    By bioscript in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-25-2012, 03:09 AM
  6. Replies: 0
    Last Post: 09-05-2011, 04:35 PM
  7. Auto update master worksheet from multiple worksheets
    By momossy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2010, 05:18 PM

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