SUMPRODUCT Function Between Two Dates

Posted on 2013-05-13
Last Modified: 2013-05-13
I am using the following function to return a value from Column B if Column A meets certain criteria:

=SUMPRODUCT(--('Brian Chadwick.xlsx'!$A2:$A200>20130505),'Brian Chadwick.xlsx'!$B2:$B200)

This function is working correctly.  However, I need to alter the function to test for a range of  numbers.  IE: >20130505 AND <20130513.  I've tried several variations of the formula with no success. Can anyone help me?
Question by:nquinn94
LVL 23

Accepted Solution

NBVC earned 500 total points
Comment Utility
You tried?

=SUMPRODUCT(--('Brian Chadwick.xlsx'!$A2:$A200>20130505),--('Brian Chadwick.xlsx'!$A2:$A200<20130513),'Brian Chadwick.xlsx'!$B2:$B200)
LVL 39

Expert Comment

Comment Utility
Or as a multiplication

=SUMPRODUCT(('Brian Chadwick.xlsx'!$A2:$A200>20130505)*('Brian Chadwick.xlsx'!$A2:$A200<20130513)*('Brian Chadwick.xlsx'!$B2:$B200))

Since you have excel 2010, you can also use SUMIFS

=SUMIFS('Brian Chadwick.xlsx'!$B2:$B200,'Brian Chadwick.xlsx'!$A2:$A200,">20130505",'Brian Chadwick.xlsx'!$A2:$A200,"<20130513")


Author Closing Comment

Comment Utility
Worked perfectly!  Thank you!

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now