+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Using SUMPRODUCT with dates???

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Joplin, MO
    MS-Off Ver
    Excel 2003
    Posts
    12

    Using SUMPRODUCT with dates???

    First off let me say hello to this forum!!! I hope to contribute as much as I get out.. but after looking at some threads.. everyone is pretty far ahead of me in the knowledge department.

    I have a spreadsheet of products that I receive and then have the shipped out. I have used sumproduct in the past to get the #'s i need but now I would like to see them broke down to months and year to date #'s. Here is what i use to get MONTH data from my list:

    =SUMPRODUCT(--(TYPEA=M12),--(TEXT(DATEA,"mmm/yy")=$D$32))

    TYPEA = Product type column
    M12 = Product
    DATEA = Date column in ( in DATE format)
    $D$32 = JAN/11

    This works great for MONTH in and outs.

    My question is HOW can i get that to give me TOTAL YEAR using that same format or what do I have to do to get year info from it.

    Thanks in advance!!

    Mike

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using SUMPRODUCT with dates???

    Maybe:

    =SUMPRODUCT(--(TYPEA=M12),--(TEXT(DATEA,"yy")=RIGHT($D$32,2)))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Using SUMPRODUCT with dates???

    Hi and welcome to the board

    Maybe =SUMPRODUCT(--(TYPEA=M12),--(year(DATEA)=your_year)

    Or depending on your data and what you need,maybe a Pivot Tbale can help

  4. #4
    Registered User
    Join Date
    01-13-2011
    Location
    Joplin, MO
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Using SUMPRODUCT with dates???

    WOW!!! And that took all of 7 min! Thank you for the help!!

  5. #5
    Registered User
    Join Date
    01-13-2011
    Location
    Joplin, MO
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Using SUMPRODUCT with dates???

    I have tried PIVOT tables but i cant seem to wrap my head around them!!!

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Using SUMPRODUCT with dates???

    There's some good video tutorials on them here:

    http://www.datapigtechnologies.com/ExcelMain.htm

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ 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