+ Reply to Thread
Results 1 to 4 of 4

Eliminating Duplicates from Count

  1. #1
    Registered User
    Join Date
    01-09-2006
    Location
    Massachusetts
    MS-Off Ver
    Version 2402 Build 16.0.17328.20124)
    Posts
    61

    Eliminating Duplicates from Count

    Hello,
    I am working on a excel sheet that lists employees by name, by date and # hrs each emloyees worked.
    Example: attached


    I would like to only count employees name once, but need the total # hours that employee worked. So for instance Employee Gould, J would equal 1, but total hours for that employee would be 6. I guess what I am trying to do is not count duplicate names, but still count all the hours. Anyone have any idea how I could acheive that? I have tried to subtotal but that still seem to count duplicate names seperately.
    I'd appreciate any ideas.
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Eliminating Duplicates from Count

    Perhaps a Pivot Table ? Count - Eliminating Duplicates.xlsx

  3. #3
    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: Eliminating Duplicates from Count

    Hi

    Or in D21 and copy down(Array formula C+S+E)

    =IF(ISERROR(INDEX($D$5:$D$14;MATCH(0;COUNTIF($D$20:D20;$D$5:$D$14);0)));"";INDEX($D$5:$D$14;MATCH(0;COUNTIF($D$20:D20;$D$5:$D$14);0)))

    In G21 and copy down.

    =SUMPRODUCT(($D$5:$D$14=D21)*($G$5:$G$14))

    Is this, works for you?

    Edit: Pls, change the semi-colons in my formula to Comma if you have to do this..
    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.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,269

    Re: Eliminating Duplicates from Count

    Here is the Pivot Table of your data. You need to make your data a "TABLE" with no blank columns between the data. See what I needed to do...
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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