Solved

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

Posted on 2013-01-07
3
329 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

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 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;…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
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.

734 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