+ Reply to Thread
Results 1 to 2 of 2

Formula for summing unique values and also corresponding uniquevalues based on a parameter

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Formula for summing unique values and also corresponding uniquevalues based on a parameter

    Hi everyone,

    Possibly a very confusing title, so I'll put my problem in more plain English, hoping someone can help.

    I have a sheet which contains 3 main columns - Ticket Number, Agent Name, and Met SLA (yes=1, no =0). What I am trying to arrive at is a percentage for each agent on the total of unique tickets they have worked on that have hit SLA. The ticket number and the Met SLA values will always be the same across duplicate rows. One agent could work on the same ticket more than once so I only want to know about the ticket and its hit SLA or not once. And more than one agent could work on the same ticket (still the SLA hit never changes).

    Example spreadsheet attached. In this sheet I need to calculate total number of unique tickets by Agent (in this case 3 for Chris, 4 for Tim) and the sum of unique tickets that have a corresponding 1 in column D (SLA met - this never changes by ticket) by Agents (in this case 2 for Chris, 3 for Tim) and then divide the latter by the former to get the % across 2 cells - one for Chris and one for Tim.

    So in this sheet I want to populate G5 and G6.

    Not sure how well I explained this so feel free to ask questions.

    Thanks!

    Hugh
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula for summing unique values and also corresponding uniquevalues based on a param

    In E2 and copy down, use this.

    =COUNTIFS(B2:$B$16,B2,C2:$C$16,C2,D2:$D$16,1)

    This will be a helper and hidden column.

    In G5 and copy down, use this.

    =COUNTIFS($C$2:$C$16,F5,$E$2:$E$16,1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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