[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2013-01-07
3
Medium Priority
?
333 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
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

873 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