Solved

SUMPRODUCT Function Between Two Dates

Posted on 2013-05-13
3
537 Views
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?
0
Comment
Question by:nquinn94
3 Comments
 
LVL 23

Accepted Solution

by:
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)
0
 
LVL 39

Expert Comment

by:nutsch
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")


Thomas
0
 

Author Closing Comment

by:nquinn94
Comment Utility
Worked perfectly!  Thank you!
0

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