+ Reply to Thread
Results 1 to 12 of 12

automatic data update in master sheet from daily sheets

  1. #1
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    automatic data update in master sheet from daily sheets

    Dear All

    Please can someone advise how I can get excel to populate the data on the master sheet from the individual daily sheets. I have attached sample excel.

    In the sample sheet excel, on a daily basis I nned the data to be entered on the date sheets of the month, 1,2,3,4 etc and then wnat the master sheet to capture this information on the master sheet. If i went back to a day later on to add an extra entry, would the master sheet be updated also.

    Thank you.

    vba1234
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,361

    Re: automatic data update in master sheet from daily sheets

    As tabs 1 2, 3 appear to DAYs of a month it would be more sensible (best practice!) to put ALL your data in the MASTER sheet and avoid the "daily" sheets.

    Adding daily data will require VBA.

    In the attached:

    In "Mater", click on "Developer" then "Form" (far right) and now there is a ready-made input form.
    Attached Files Attached Files
    Last edited by JohnTopley; 04-13-2022 at 11:56 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: automatic data update in master sheet from daily sheets

    Oh, I'm late. Hi to all.
    Well the only way I can do this is with vba, so here's what I came up with. On request (to be done after updating data), the macro (to be pasted in a module) when launched will clear sheet Master and then consolidate data from the other sheets once again.
    Please Login or Register  to view this content.
    Last edited by rollis13; 04-13-2022 at 11:41 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,361

    Re: automatic data update in master sheet from daily sheets

    @rollis13: I would take the same approach and the macro could be invoked on Workbook.Close.

    One potential issue is if the data in Master is updated independent of the Daily so that data is lost in the refresh (but no easy answer to this!)

  5. #5
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: automatic data update in master sheet from daily sheets

    @JohnTopley, not sure if the function Workbook.Close would be the only moment to update the master, maybe OP needs to look at the Master before closing, but could be usefull if one forgets to manually launch the macro; twice is better than nothing.
    Maybe with event Workbook_SheetChange it would be more immediate.

  6. #6
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: automatic data update in master sheet from daily sheets

    Dear All

    Thank you all so much for your help. I have tried this and it works. Is there any way to get a short cut button to run the macro on the Master sheet, rather than having to select the macro?

  7. #7
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: automatic data update in master sheet from daily sheets

    Here is a LINK or LINK

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,361

    Re: automatic data update in master sheet from daily sheets

    See attached
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: automatic data update in master sheet from daily sheets

    Dear John and rollis123

    Sorry for the late update, but busy. I had a look at the sample excel and see that John has kibldy provided a quck update link and the link and VBA work.

    Thank you.

    Will this VBA routine work in this maner for any number of columns?

    vba1234

  10. #10
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: automatic data update in master sheet from daily sheets

    In my macro post #3 the column range is hard-coded B-K so needs some code adjustment to become dynamic.
    This could be a solution with dynamic columns (but always with data starting from column B row 3):
    Please Login or Register  to view this content.
    Last edited by rollis13; 04-18-2022 at 05:34 PM.

  11. #11
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: automatic data update in master sheet from daily sheets

    Hi rollis13

    Thank you.
    I will try this and if any problems will advise.

    vba1234

  12. #12
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: automatic data update in master sheet from daily sheets

    Oh, it has been tested, at most it differs from your expectations .

+ 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. [SOLVED] Google Sheets: Update slave/child sheets from Master/Parent sheet
    By JGREEN17 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-29-2021, 03:03 PM
  2. [SOLVED] Automatic data updation from other sheets to master sheet
    By kprabhupaul in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-07-2016, 10:30 AM
  3. Replies: 0
    Last Post: 10-14-2015, 12:53 PM
  4. Replies: 2
    Last Post: 07-03-2015, 03:42 AM
  5. Looking to compile data from daily sheets onto 1 master sheet
    By coreygesell in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-17-2012, 03:08 PM
  6. Replies: 5
    Last Post: 02-06-2012, 09:45 AM
  7. Update master sheet from daily report
    By guru.spp in forum Excel General
    Replies: 6
    Last Post: 06-11-2008, 09:43 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