+ Reply to Thread
Results 1 to 8 of 8

Sum data over multiple worksheets based on month criteria.

  1. #1
    Registered User
    Join Date
    08-10-2015
    Location
    Puyallup, WA
    MS-Off Ver
    2013, 2010
    Posts
    4

    Sum data over multiple worksheets based on month criteria.

    I am trying to summarize data from multiple worksheets based on the column month. There are only 6 columns in each Lot tab but the months of those columns may change based on the start date of the project. There is a sheet list on the summary tab. When I do an evaluation of the formula, the sheets show #VALUE and I only get 0 for a sum.
    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,206

    Re: Sum data over multiple worksheets based on month criteria.

    You don't need check month of the date just the date itself.

    =SUMPRODUCT(SUMIF(INDIRECT("'"&$B$53:$B$70&"'!$i$8:$n$8"),E$27,INDIRECT("'"&$B$53:$B$70&"'!$i$59:$n$59")))

  3. #3
    Registered User
    Join Date
    08-10-2015
    Location
    Puyallup, WA
    MS-Off Ver
    2013, 2010
    Posts
    4

    Re: Sum data over multiple worksheets based on month criteria.

    The month is the key because start dates can be different days of the month. I found a solution by making a formula below the data in the Lot tabs that reads only the month. Then I use that as the criteria range for the criteria to match and it works across all lots and months.

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

    Re: Sum data over multiple worksheets based on month criteria.

    If your are summing any month (then to me) the start date is not relevant. If all month headings had a date of 01/mm/yyyy and data in the column was only for that month, then checking the month simply by matching the 01 date will work.

    Everything in your sheet supports this - but your choice.

  5. #5
    Registered User
    Join Date
    08-10-2015
    Location
    Puyallup, WA
    MS-Off Ver
    2013, 2010
    Posts
    4

    Re: Sum data over multiple worksheets based on month criteria.

    It seemed to be reading the entire date instead of just the month so this works. Maybe not perfect but now I can move forward to finish the rest of the project and not spin my wheels on it.

  6. #6
    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,936

    Re: Sum data over multiple worksheets based on month criteria.

    This does not answer your question (yet), but I made some changes to column E on Lot1 sheet, that should help improve things a bit. I only made them in Lot1 sheet, and I understand it may be a pain to apply them to all sheets, but take a look. I highlighted the changes in yellow
    Attached Files Attached Files
    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

  7. #7
    Registered User
    Join Date
    08-10-2015
    Location
    Puyallup, WA
    MS-Off Ver
    2013, 2010
    Posts
    4

    Re: Sum data over multiple worksheets based on month criteria.

    I got my other problem solved I think but your change does shorten those formulae.

    Thanks.

  8. #8
    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,936

    Re: Sum data over multiple worksheets based on month criteria.

    How did you solve 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. Calculating Inventory Sell Through by month based on multiple criteria
    By AlphaSkidz in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-16-2014, 11:20 PM
  2. Replies: 3
    Last Post: 05-01-2014, 01:17 PM
  3. [SOLVED] Copy column data from multiple worksheets to single worksheet based on header criteria
    By nateaskins in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-21-2014, 10:42 AM
  4. Replies: 2
    Last Post: 02-20-2013, 12:40 PM
  5. I need to move data from main worksheet into multiple worksheets based on a criteria
    By ksenia81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2012, 05:45 PM
  6. [SOLVED] Copy data across multiple worksheets (based on three criteria)
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2012, 12:53 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