+ Reply to Thread
Results 1 to 3 of 3

Sum product or Sum if between 2 dates

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2010
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2003
    Posts
    4

    Sum product or Sum if between 2 dates

    I have been trying to figure out what I am doing wrong and I am at a loss.
    What I need is to put the total sales for each month into the cells Jan-Dec in D53-64

    For example - For January total sales:
    If B3:B50 is between 1/1/10 and 1/31/10 then give me the total sales for that period from D3:D50
    the formula I was trying to use is:
    =SUMIF(B3:B50,"<="&DATE(1/1/10),D3:D50)+SUMIF(B3:B50,"<"&DATE(1/31/10),D3:50)

    I have also tried:
    =SUMPRODUCT(--(B3:B50<=DATEVALUE("1/1/10")),--(B3:B50<DATEVALUE("1/31/10")),D3:D50)

    Any ideas how to do this? I uploaded the file to this link for review. I wasn't able to attach it through this thread for some reason.
    http://www.sendspace.com/file/k1bpue

    Thanks in advance.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Sum product or Sum if between 2 dates

    Hi,

    You can try :
    =SUMPRODUCT(--(MONTH(B3:B6)=1)*(C3:C6))
    HTH

  3. #3
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Thumbs up Re: Sum product or Sum if between 2 dates

    Try this formula .... Although i've updated it in your file as well ...

    =SUMPRODUCT(--(MONTH($B$3:$B$50)=MONTH(C53))*--(YEAR($B$3:$B$50)=YEAR(C53)),$D$3:$D$50)
    Attached Files Attached Files
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

+ 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