Solved

CountIF between date range with Multiple Criteria

Posted on 2013-02-06
3
882 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
3 Comments
 
LVL 7

Accepted Solution

by:
leptonka earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

25 Experts available now in Live!

Get 1:1 Help Now