+ Reply to Thread
Results 1 to 5 of 5

Formula that counts everything except duplicates...

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula that counts everything except duplicates...

    Hi,

    New here so forgive me.

    I have a uni problem, I would like to count the number of trucks used each day for each shift(day & night), that operated under a specific digger.
    That part is easy.
    The issue is: if one truck was used by two different people in one shift, the imported data will say it operated twice. I would like to do a count which ignores duplicate truck ID's for each shift, so that each truck is only counted once per shift if used at all.

    For some reason photos wont upload, so:

    Summary Data Tab: (Counting Duplicates)

    ______C______D__________E_________F__G__H__I

    _____Date___Shift___Total # Trucks__Actual # Trucks

    __________________________________A__B__C__D

    04__2/1/14____D_________10________2__4__0__4
    05__2/1/14____N__________3________1__0__0__2
    06__3/1/14____D__________0________0__0__0__0
    07__3/1/14____N_________11________3__3__3__2


    Import Data Tab:

    ______F______G_______H__________I____________J____________K

    ____Date____Shift___Truck I.D.__Digger I.D____Workhours____Truck Type

    04__2/1/14____D_____21335______22225_________6 ___________D
    05__2/1/14____D_____21334______22225________4.8___________D
    06__2/1/14____D_____21302______22225_________7 ___________D
    07__2/1/14____D_____21334______22225________3.9___________D
    08__2/1/14____D_____21335______22225_________2 ___________A
    09__2/1/14____D_____33748______22225_________1 ___________A
    10__2/1/14____D_____21381______22225________3.8___________C
    11__2/1/14____D_____21380______22225_________3 ___________C
    12__2/1/14____D_____21374______22225_________2 ___________C
    13__2/1/14____D_____21570______22225________2.4___________C




    My Summary data tab holds the formulas I've created (based on the data that is imported into the 'Import data tab'), as you can see it is counting 10 trucks used for 2/1/14 day shift.
    When in fact 8 trucks were used that day on day shift, of which two trucks were used by two different employees.


    Please help, I've fiddled with this for far too long...


    Cheers

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Formula that counts everything except duplicates...

    Hi

    in F2:F100 shifts, in H2:H100 truck ID.


    Please Login or Register  to view this content.
    Very important: formula to be confirmed with control+shift+enter and ranges must be precise.

    Attached an example

    Regards
    Attached Files Attached Files
    Last edited by canapone; 01-22-2014 at 01:51 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

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

    Re: Formula that counts everything except duplicates...

    Hi mike and welcome to the forum,

    It looks like you are using a pivot table to get your answer so far.

    I think you need a helper column next to your data that will count the number of Date, Shift, Truck. Then use this helper as a filter column in your pivot table.

    If you want to see it, attach the sample in a workbook to your thread. To do this click on "Go Advanced" and then on the paper clip icon above the message area.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-21-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula that counts everything except duplicates...

    Thanks for the prompt reply guys!!

    big thanks to CANAPONE I should deffinitely be able to get it from there!!


  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Formula that counts everything except duplicates...

    Ciao,

    thanks for feedback.

    Greetings from Florence

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Help! How do I combine duplicates with different counts of inventory?
    By tybles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2013, 09:25 PM
  2. [SOLVED] Formula that counts same value
    By Oeysbrei in forum Excel General
    Replies: 8
    Last Post: 04-29-2012, 01:01 AM
  3. Replies: 2
    Last Post: 03-20-2011, 11:19 AM
  4. Replies: 9
    Last Post: 03-16-2010, 03:34 PM
  5. Ignore Duplicates in Counts
    By dfq in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2007, 03:11 AM

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