+ Reply to Thread
Results 1 to 6 of 6

Using SUMPRODUCT based on criteria

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Using SUMPRODUCT based on criteria

    Hi

    I have a spreadsheet where I am doing the following (amongst other things):

    - listing a number of products
    - which are delivered on a particular week

    eg

    Column A lists product names
    Column B lists number of units (of a particular product) shipped
    Column C lists the ship date

    In a seperate sheet I want to identify how many of each item werr shipped in a particular week (in a table)

    eg

    Column A product name
    Column B onwards is Week Ending Date

    Under each Date it should have a total of units ship for that particular product/row in that week i.e. between the dates in each column


    I looked at SUMPRODUCT to do this, but can't figure out how to do the lookup ie if product name, then SUM units between DATE1 and DATE2.


    Any thoughts?

    Thanks
    Carlos

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Using SUMPRODUCT based on criteria

    Have a look at the SUMIFS() function - it is preferable to SUMPRODUCT()

    http://www.excelfunctions.net/Excel-...-Function.html
    or
    http://office.microsoft.com/en-us/ex...in=HP010079186

  3. #3
    Registered User
    Join Date
    04-17-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Using SUMPRODUCT based on criteria

    Aha.. I have used SUMIFS (and COUNTIFS) elsewhere in this report - lemme check that out..

  4. #4
    Registered User
    Join Date
    04-17-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Using SUMPRODUCT based on criteria

    Hi Cutter

    Yep, SUMIFS got me the result I wanted! Thanks for that : )


    I'd like to run this past you and see if it's as concise as it could be >>

    Worksheet called 'DataSheet' contains all details :
    Column G = Unit numbers
    Column H = Unit Type
    Column N = Date units shipped

    In Report worksheet (where this table is located):
    Cell B16 = Unit type (reference)
    Cell Y6 = week ending date (previous week)
    Cell Z6 = week ending date (current week)

    Table lays out units shipped by type per week.

    =SUMIFS('DataSheet'!$G$3:$G$400,'DataSheet'!$H$3:$H$400,$B$16, 'DataSheet'!$N$3:$N$400,">"&Y6,'DataSheet'!$N$3:$N$400,"<="&Z6)

    I used the '$' absolute reference so I could copy and paste across 52 weeks.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Using SUMPRODUCT based on criteria

    That structure looks exactly right. Nice that you were able to take a suggested function and implement it.
    Don't forget to mark your thread as SOLVED.

  6. #6
    Registered User
    Join Date
    04-17-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Using SUMPRODUCT based on criteria

    Thanks for the assist Cutter : )

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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