+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT to total dates from multiple worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    4

    SUMPRODUCT to total dates from multiple worksheets

    Hi all-

    I have been brought in to alleviate human error in counting the total monthly tool repairs entered into a spreadsheet.
    In the whole workbook, I have tabs corresponding to all letters of the alphabet plus frequent customers (30 sheets in total). This is used for documenting the tool repairs we take in and then send out by putting the date in, in one column, and the date out, in another.
    My goal is to total all of the dates-in and all of the dates-out on a TOTALS sheet to get our monthly repairs in/out totals.

    As of now I have columns with the first (column J) and last (K) dates of the month for the criteria in the formula. The dates-in are in column B and I have renamed them all as: DATE_IN_1, DATE_IN_2, etc.
    I have already successfully done this for our 4 largest customers using:
    =SUMPRODUCT((ATMI!$B$2:$B$603>=J2)*(ATMI!$B$2:$B$603<=K2))
    (ATMI is one of the 4 largest tool repair customers)

    I want to recreate this formula so that it counts not only ATMI and the 3 other sheets, but all 28 other sheets in the workbook.
    The problem is that the formula I currently have for each month does not count all of the dates in all of the worksheets.
    The formula I have looks like this:
    =SUMPRODUCT((DATE_IN>=J2)*(DATE_IN<=K2))+((DATE_IN_2>=J2)*(DATE_IN_2<=K2))+((DATE_IN_3>=J2)*(DATE_IN_3<=K2))+((DATE_IN_4>=J2)*(DATE_IN_4<=K2))+((DATE_IN_5>=J2)*(DATE_IN_5<=K2))+((DATE_IN_6>=J2)*(DATE_IN_6<=K2))...etc for all the sheets.

    The file is here:
    TOOL REPAIRS.zip

    Could anyone help me out?
    Thanks
    Last edited by mtnovak2; 08-22-2012 at 12:01 PM.

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

    Re: SUMPRODUCT to total dates from multiple worksheets

    Why don't you put all data in 1 worksheet.

    Then you have a table and you can use pivot table.
    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.

  3. #3
    Registered User
    Join Date
    08-10-2012
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SUMPRODUCT to total dates from multiple worksheets

    I need to keep all of my customers in different tabs for other monthly reports, plus there is too much data to be neatly organized in one worksheet.
    Is there a way I can use pivot tables with different tabs? Or integrate multiple tables into one? If that is the easiest way to do it?

  4. #4
    Registered User
    Join Date
    08-10-2012
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SUMPRODUCT to total dates from multiple worksheets

    I originally did not know you could attach files to threads. Here is the file that I am still working on fixing.
    Thanks for the help.
    Attached Files Attached Files

+ 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