?
Solved

CountIF between date range with Multiple Criteria

Posted on 2013-02-06
3
Medium Priority
?
917 Views
Last Modified: 2013-02-07
Hi Experts,

I have a workbook where I need to count the number of Interactions between a date range based on an employees name and wanted to know if this can be done?

Attached is a sample workbook with the following formula

=SUMPRODUCT((RLOFTracker[Date Worked]>=$F$1)*(RLOFTracker[Date Worked]<=$G$1)*(RLOFTracker[CQ Agent]=A2)*(RLOFTracker[Interaction ID]))

Col A has the Employee Names, Col B is where I have the above formula, Col F & G holds the dates.

I have a table that's holding the Interactions each employee had on a specified date.  I need to count the number of Interactions an Employee had between a date range
EE-CountIF-Multiple-Criteria.xlsx
0
Comment
Question by:"Abys" Wallace
[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
3 Comments
 
LVL 7

Accepted Solution

by:
leptonka earned 2000 total points
ID: 38862802
Hi,
If you would like to count, you do not need the number of interactions:

=SUMPRODUCT((RLOFTracker[Date Worked]>=$F$1)*(RLOFTracker[Date Worked]<=$G$1)*(RLOFTracker[CQ Agent]=A2))

or if you are not sure the ID is filled or not:
=SUMPRODUCT((RLOFTracker[Date Worked]>=$F$1)*(RLOFTracker[Date Worked]<=$G$1)*(RLOFTracker[CQ Agent]=A2)*(RLOFTracker[Interaction ID]<>""))

Cheers,
Kris
=SUMPRODUCT((RLOFTracker[Date Worked]>=$F$1)*(RLOFTracker[Date Worked]<=$G$1)*(RLOFTracker[CQ Agent]=A2))

Open in new window

0
 
LVL 24

Expert Comment

by:Steve
ID: 38862941
Is the attached what you were looking for: Using COUNTIFS

=COUNTIFS(RLOFTracker[CQ Agent],Sheet1!A2,RLOFTracker[Date Worked],">="&Sheet1!$F$1,RLOFTracker[Date Worked],"<="&Sheet1!$G$1)
EE-CountIF-Multiple-Criteria.xlsx
0
 

Author Closing Comment

by:"Abys" Wallace
ID: 38863360
Works great!  Thank you leptonka
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

718 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