+ Reply to Thread
Results 1 to 10 of 10

Sum using Multiple criteria over multiple sheets and multiple ranges

  1. #1
    Registered User
    Join Date
    02-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2007 and 2010
    Posts
    11

    Sum using Multiple criteria over multiple sheets and multiple ranges

    Thanks for looking at my post.
    I want to add the amount of entries made using a specific number.
    I have a log of the start and ending-times each number has been used and in which division (North, East, etc.):
    Log.PNG

    I also have a log showing the amount of entries each minute. These logs are seperated on 4 worksheets: North, West, South and East. At the end there is a total:
    North.PNG

    If I want to know how many entries have been made using 10422906, i need to look at which periods 10422906 was used in division North.
    Then I look at how many entries were made in that timeframe on the sheet North. There can be multiple timeframes. I need to repeat this for West, South and East. Then I have to total it. I want to leave the division-total as shown in the second image I uploaded out of the calculations.

    I've tried al week using sumifs, sumproduct, indirect, array-formulas. I also can't find a similar enough question.
    If there is any additional info I can provide, please ask.

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

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    Please post a small sample file, showing expected results, so respondents have data to work with.

    To upload a file, click "Go Advanced" then "Manage Attachments"

  3. #3
    Registered User
    Join Date
    02-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2007 and 2010
    Posts
    11

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    Sorry for the delay. I had trouble uploading.

    So I want to populate cells B2 to B11 in Sheet Nrs with formulas to calculate the amount of entries made using a specific number.

    EDIT: changed the file to make it easier.
    Attached Files Attached Files
    Last edited by l7faa; 03-03-2016 at 09:28 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,186

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    VBA solution

    Please Login or Register  to view this content.
    Last edited by JohnTopley; 03-04-2016 at 08:08 AM.

  5. #5
    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,186

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    New version
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2007 and 2010
    Posts
    11

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    Wow.
    This works great. Thanks a million.
    My VBA knowledge is too limited to have made this myself. But I have learned a lot by studying your code.

  7. #7
    Registered User
    Join Date
    02-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2007 and 2010
    Posts
    11

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    I have tried using this code on my real workbook, but I can't get it to work.
    My problems seem to be:
    * Sheet Nrs has 97 numbers in column 1. I'd like the sum of entries in column 3. There a total of 8 columns of data.
    * Sheet Log has the number in column 8.
    * Some numbers in Nrs dont have a entry in Log


    John, could you please take a second look or point me in the right direction?

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

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    Post a sample file with the NEW (!) real data format.
    Last edited by JohnTopley; 03-09-2016 at 03:49 PM.

  9. #9
    Registered User
    Join Date
    02-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2007 and 2010
    Posts
    11

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    Through trial and error I've gotten the code to work in my real workbook. I've learned a lot. Thank you, John.
    I've changed this part of the code to get the sum of the entries in column 3:
    Please Login or Register  to view this content.

  10. #10
    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,186

    Re: Sum using Multiple criteria over multiple sheets and multiple ranges

    Well done! There is great(er) satisfaction finding the solution by one's own effort.

+ 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. Replies: 8
    Last Post: 01-30-2016, 05:00 PM
  2. [SOLVED] SUMPRODUCT of multiple columns with multiple criteria over multiple sheets
    By BellyGas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 08:27 AM
  3. Multiple cells, multiple sheets, multiple criteria matching
    By Drudnits1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2014, 12:12 PM
  4. Excel 2007 : Index, Match, Large Formula: Multiple Criteria, Multiple Ranges
    By SimpleJack in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2013, 08:54 AM
  5. [SOLVED] Counting multiple items with multiple criteria from multiple sheets?
    By essee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2013, 01:56 AM
  6. Compiling multiple ranges of cells from multiple sheets into one grand table ?
    By teacher_rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 11:42 AM
  7. Replies: 2
    Last Post: 05-10-2012, 10:38 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