+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT or COUNTIFS to Return Sum of Numbers Meeting Year and Part Number?

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2016 (PC) & 2011 (mac)
    Posts
    33

    SUMPRODUCT or COUNTIFS to Return Sum of Numbers Meeting Year and Part Number?

    I'm currently using the equation below, in Column G of the table, to sum the quantity of each part number according to year.

    =SUMPRODUCT(--(YEAR($B$4:$B$8)=G3),$C$4:$C$8)

    The problem with the above equation is that I have to manually enter it into each cell in Column G and adjust the ranges for each part number. This is okay to do for smaller data sets but is inefficient.

    I tried playing with SUMIFS using multiple criteria but the date is throwing me off. What can I use in order for me to use one equation for all part numbers.

    Excel Test.jpg
    Attached Files Attached Files
    Last edited by d_striker; 03-27-2013 at 04:02 PM.

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: SUMPRODUCT or COUNTIFS to Return Sum of Numbers Meeting Year and Part Number?

    hi there,

    put this in G4, drag-fill right and down:

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: SUMPRODUCT or COUNTIFS to Return Sum of Numbers Meeting Year and Part Number?

    is a pivot table a solution?
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2016 (PC) & 2011 (mac)
    Posts
    33

    Re: SUMPRODUCT or COUNTIFS to Return Sum of Numbers Meeting Year and Part Number?

    Quote Originally Posted by icestationzbra View Post
    hi there,

    put this in g4, drag-fill right and down:

    Please Login or Register  to view this content.
    record time!!!

    Thanks!

+ 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