Solved

SUMPRODUCT Function Between Two Dates

Posted on 2013-05-13
3
605 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
ID: 39161639
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
ID: 39161995
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
ID: 39162072
Worked perfectly!  Thank you!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Find and Replace Function not working in Excel 13 45
MS excel check if Links exist 5 35
vba delete dups is not working 35 14
Problem to file 5 15
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

773 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