Solved

SumIF for multiple criteria to include date falls in particular month

Posted on 2016-07-16
5
94 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
[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
  • 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

Independent Software Vendors: 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.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

705 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