+ Reply to Thread
Results 1 to 5 of 5

Max number of occurrences based on two variables

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    17

    Max number of occurrences based on two variables

    Hello,

    I have a "database" that houses statistics for a call center. I have a column with names and then another column with the type of call they took. I want to be able to report on the most common type of call they took by each person. So a formula that singles out their name and essentially counts all the types of calls and then gives me the type that has the most. I've tried different variations of INDEX and MATCH formulas...but I'm not that good with them.

    This is what I've tried which works if I want to get the max overall...but it won't give me data for a specific agent.
    {=INDEX(D2:D43,MATCH(MAX(COUNTIF(D2:D43,D2:D43)),COUNTIF(D2:D43,D2:D43),0))}

    Any help is greatly appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Max number of occurrences based on two variables

    Hi -

    This is a perfect application for a pivot table.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Max number of occurrences based on two variables

    Thanks loginjmor...I've tried using Pivot tables but they don't seem to give me what I need. Well I should say the data is correct but, I'm not sure how to link back to the pivot tables because each person and each month is different.

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Max number of occurrences based on two variables

    Hi -

    I have put together a pivot table based on the sample data you provided and attached it to this post. It has Reasons along the left had side and Names across the top and provides a breakdown summary of reasons by person as well as totals. You can also add in monthly breakdowns, but in this case, the data was all for May. This literally takes about 2 minutes to put together and saves you a TON of coding.

    If this isn't what you need, please describe what is missing and I will try to assist further.

    Hope this helps.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-29-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Max number of occurrences based on two variables

    Thanks again loginjmor. The data is there...but I need to be able to feed that data over to a scorecard (which I realize I left out of my initial post...sorry). So each month it would show Name 1's top call reason for January was Reason 1 (or whatever it may be), for February it was Reason 2, etc.. I guess my problem is being able to take the data from the pivot table and get it into their scorecard. Would I use an HLOOKUP function...somehow mixed with a MAX function?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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