Solved

SumIF for multiple criteria to include date falls in particular month

Posted on 2016-07-16
5
65 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvieā€¦
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 will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
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.

809 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