+ Reply to Thread
Results 1 to 2 of 2

Countif based on multiple criteria

Hybrid View

dmt2 Countif based on multiple... 10-07-2010, 03:09 PM
NBVC Re: Countif based on multiple... 10-07-2010, 03:38 PM
  1. #1
    Registered User
    Join Date
    09-27-2010
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    2

    Countif based on multiple criteria

    Please see attached workbook.

    I've been trying to use the countifs formula to count the number of times, for each agent, a particular customer calls back if they call back in less than 7 days. In my data I have the time called, the client phone number, which agent answered the call and the queue that call came in through (which I guess is not relevent to my problem).

    In the example provided, for agent 1, that phone number called back 6 times in the 7 day window. For agent 10, called back 2 times after speaking to agent 10.
    Attached Files Attached Files
    Last edited by dmt2; 10-07-2010 at 03:55 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Countif based on multiple criteria

    Try:

    =COUNTIFS($A2:$A$13,"<="&INT(A2)+7,$B2:$B$13,B2)-1

    or

    =SUMPRODUCT(--($A2:$A$13<=INT(A2)+7),--($B2:$B$13=B2))-1

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1