+ Reply to Thread
Results 1 to 4 of 4

Help with SUMProduct with two date ranges

  1. #1
    Registered User
    Join Date
    02-16-2011
    Location
    Yukon, Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with SUMProduct with two date ranges

    How do I use SUMPRODUCT to sum a column using dates from another column? For example, I need to sum all the amounts that are due in February. My due dates range all of February not just the word "February". I have tried to do it using
    SUMProduct(--(F6:F11,"<2011-01-31")*(F6:F11," >2011-03-01"),E6:E11)
    It comes back zero. What am I doing wrong?
    Last edited by NBVC; 02-16-2011 at 04:40 PM.

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

    Re: Help with SUMProduct with two date ranges

    Try:

    =SUMIF(F6:F11,">2011-01-31",E6:E11)-COUNTIF(F6:F11,">=2011-03-01",E6:E11)

    or

    =SUMPRODUCT(--(F6:F11<"2011-01-31"+0),--(F6:F11>"2011-03-01"+0),E6:E11)
    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: Help with SUMProduct with two date ranges

    Hi and welcome to the board

    Maybe =SUMProduct((F6:F11>date(2011,1,31))*(F6:F11<date(2011,3,1))*(E6:E11))

    You can also enter the dates in cells and refer to them in your formula

    This is assuming you have real dates, not text looking like dates

  4. #4
    Registered User
    Join Date
    02-16-2011
    Location
    Yukon, Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with SUMProduct with two date ranges

    Arthurbr
    Thanks so much for the welcome!

    And, thanks so much for the help!! Worked like a charm!!

+ 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