?
Solved

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

Posted on 2013-01-07
3
Medium Priority
?
331 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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,…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
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 the scrolling table in Microsoft Excel using the INDEX function.

764 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