+ Reply to Thread
Results 1 to 4 of 4

lookup/match against multiple criteria and get the sum of multiple entries

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    North Dakota, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    lookup/match against multiple criteria and get the sum of multiple entries

    Good Afternoon Everyone -

    I am not 100% sure on how to complete my results I am looking and am looking for advice or ideas on how to achieve my results.

    I have included a sample file to assist in describing what I am trying to achieve.

    My actual workbook is a time sheet that I have put together with some great advice and assistance from you guys. The 'DataSource' is imported data via pilot table which I have broken down using the 'Name Manger' option in excel.

    I would like to be able to search/match by any specific user (B4) and date (C4) entered in worksheet 'Summary' which would pull the information from worksheet 'DataSource'. I need it to give me a result of the total qty (D4) from all the multiple entries made by that user and date entered in worksheet 'Summary'. I also need to be able to break down the totals by specific 'Activity' or a combination of activities (E4) as shown in worksheet 'Summary'.

    I have did some searching on this forum and I believe this can be achieved by using the SUMIF function, but I am not 100% sure.

    Any advice or assistance would be extremely grateful.
    Attached Files Attached Files
    Last edited by Boon; 03-25-2012 at 12:58 AM.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: lookup/match against multiple criteria and get the sum of multiple entries

    for your first, total you can use this:

    =SUMIFS(DataSource!F:F,DataSource!B:B,B4,DataSource!A:A,C4)

    for the second, only count A and B, you can use this

    =SUMIFS(DataSource!F:F,DataSource!A:A,Summary!C4,DataSource!B:B,Summary!B4,DataSource!C:C,"A")+SUMIFS(DataSource!F:F,DataSource!A:A,Summary!C4,DataSource!B:B,Summary!B4,DataSource!C:C,"B")
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: lookup/match against multiple criteria and get the sum of multiple entries

    You can put this formula in D4 of your Summary sheet:

    =SUMIFS(DataSource!F:F,DataSource!B:B,B4,DataSource!A:A,C4)

    and this one in E4:

    =SUMIFS(DataSource!F:F,DataSource!B:B,B4,DataSource!A:A,C4,DataSource!C:C,"A")+SUMIFS(DataSource!F:F,DataSource!B:B,B4,DataSource!A:A,C4,DataSource!C:C,"B")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-06-2011
    Location
    North Dakota, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: lookup/match against multiple criteria and get the sum of multiple entries

    Thank you guys, that worked perfectly.

+ 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