Solved

I need Excel formula that is sum based on multiple criteria ranges

Posted on 2013-01-07
3
330 Views
Last Modified: 2013-01-07
I am having difficulties with coming up with a correct formula. I need a formula that says to sum F12:F106 with the following two criterias.

1.  criteria range of C12:C106 and criteria 36

2. criteria range of D12:D106 criteria of date is greater than 12/31/2012 and less than 1/1/2014

I am doing fine all the way up through the first criteria. The date formula is what is giving me fits.
0
Comment
Question by:jimstrickland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 38752445
Which version of Excel? In Excel 2007 or later you can use SUMIFS e.g.

=SUMIFS(F12:F106,C12:C106,36,D12:D106,">"&DATE(2012,12,31),D12:D106,"<"&DATE(2014,1,1))

or in earlier versions you can use SUMPRODUCT like this

=SUMPRODUCT(F12:F106,(C12:C106=36)*(D12:D106>DATE(2012,12,31))*(D12:D106<DATE(2014,1,1)))

or given that the date range is a whole year

=SUMPRODUCT(F12:F106,(C12:C106=36)*(YEAR(D12:D106)=2013))

regards, barry
0
 

Author Comment

by:jimstrickland
ID: 38752654
This is Office 2010. Your first formula worked perfectly. Thanks.
0
 

Author Closing Comment

by:jimstrickland
ID: 38752658
Thanks. The first formula was exactly what I needed.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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 the scrolling table in Microsoft Excel using the INDEX function.

695 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