+ Reply to Thread
Results 1 to 5 of 5

Summarise data from multiple sheets based on dates

  1. #1
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Summarise data from multiple sheets based on dates

    I have a workbook that contains four sheets. Each sheet is for a specific area, but the data on all the sheets is similar.

    I would like to summarise the data from all the sheets onto a new sheet that can be viewed and printed, but cannot be altered by the user. The only time the sheet will change is based on changes to the other four sheets. Hope that made sense!!

    I would like to use the date as the 'source' data so that any row that has a date of more than 2 working days ago (monday to Friday) will appear on the summary sheet.

    Can anyone help? I have added a sample of what I currently have.

    Thanks in advance.
    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
    52,929

    Re: Summarise data from multiple sheets based on dates

    You were a little unclear on a few aspects of what you want.

    Do you want your summary sheet to have 1 or 4 different tables for the summary.
    Will the dates in each data table be unique
    Could you supply an exapmle of how you want the results to look?
    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
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Re: Summarise data from multiple sheets based on dates

    Thanks for the reply.

    Essentially, for each of the 4 sheets, if the date in column 'A' is 2 working days older than todays date, then it will copy that row to the summary sheet. So for every row, in all 4 sheets, if the criteria is met it will be copied to the summary sheet. The summary needs to show which area the row has come from.

    I then need this sheet to be viewable/printable but not amendable.

    I have added a new workbook to show how I would like the summary sheet to look. I have highlighted in yellows the data which needs to be copied from each of the 4 area tabs (ie, they are more than 2 working days old).
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Re: Summarise data from multiple sheets based on dates

    So I Managed to piece this code together which does most of what I want for an individual sheet.

    Could anyone help me to adapt the code to do the same for all of the 4 areas and also into column D what area the data came from?

    Code so far

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Re: Summarise data from multiple sheets based on dates

    With some help I have managed to get this code which does almost everything I need.

    I now only need help with the criteria to copy the rows. The criteria I need is if the date in column A is 2 working days before todays date. Can someone please help?

    Current code

    Please Login or Register  to view this content.
    Thanks.

+ 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