Solved

SumIF for multiple criteria to include date falls in particular month

Posted on 2016-07-16
5
50 Views
Last Modified: 2016-07-17
I trying to create a formula that reference a range and fall in a specific month and gives the sum.  For example, if Range code = EDD and falls in January return sum of all occurrences.

The  range containing the reason codes and dates are on a different tab.  The formula needs to reference the reason code in the table against the corresresponding reason code in the tab contain the log reasons and date
Table

Reason     Jan    Feb     Mar
EDD
0
Comment
Question by:cfhasan1
  • 4
5 Comments
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41714701
Providing the spreadsheet would be helpful.  The sumifs function might give you what you need.

http://www.excelfunctions.net/Excel-Sumifs-Function.html
1
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41714735
A pivot table is also a great tool for doing what you are asking.  Assuming the data looks like what I have provided as an example.  See spreadsheet.
EE.xlsx
0
 
LVL 7

Accepted Solution

by:
tomfarrar earned 500 total points
ID: 41714794
Or if your date is mm/dd/yr, then you can use the grouping function in the pivot table like the attached example.  An advantage of the pivot table is if your source data is defined as a table (Ctrl/T keystroke) then it will expand or detract as the number of rows change if, for instance, the data was changed every month.
EE.xlsx
0
 

Author Closing Comment

by:cfhasan1
ID: 41715695
Great!  This provides me with exactly what I was looking.
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41715975
Glad to help..
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now