Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I include a 'Between these dates' criteria inside a SUMPRODUCT?

=Sumproduct((RangeName=Cell A1)*(RangeDate=Between 01/03/10 and 31/03/10)*(RangeCost))

What's the way to manage dates (between) in a sum product?

share|improve this question
up vote 2 down vote accepted

This should help get you started. You'll need to adjust your ranges to fit your data

  • A1 = Beginning Date
  • A2 = Ending Date
  • A4:A200 = Date column
  • B4:B200 = Cost column


share|improve this answer
Thanks. I'm finding the results slightly predictable. It looks like it's not taking any notice of the >= or <= part of the formula. I'm still working on it. – RocketGoal Apr 9 '10 at 9:19
IN the end I cheated. I made another column and used Concatenate((Year($A4),(Month($A4)) that gave me my defined date range (the month) and then pointed my sumproduct at that column rather than the one we were trying to do above. This isn't an answer, but just to say I worked around it rather than solved it. It would be nice to know how it could be done the legitimate way though ;) – RocketGoal Apr 9 '10 at 10:44
Mike, it sounds like at least one of your dates is not a true date at all, but some text that looks like a date. – AdamV Apr 9 '10 at 11:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.