Forum Discussion

dolfinmagikpro's avatar
dolfinmagikpro
Copper Contributor
Nov 24, 2025

How to count duplicates ... sort of ...

Greetings!

Here is part of a table that I am working on:

RepairIDModelIDSerial NumberDate StartedDate TestedReportedSymptom
SPEA-1010PT2068FA55210/22/202510/28/2025No Boot - White Screen
SPEA-1024PT2068FA55210/22/202511/4/2025No Boot - White Screen
SPEA-1037PT2067C99BD10/22/202511/10/2025EGM No Comms
SPEA-1038PT2067154738/21/2025 EGM No Comms
SPEA-1039PT20671547311/10/202511/11/2025Failed Battery Test
SPEA-1056PT2067142AE10/20/202511/12/2025Black Screen
SPEA-1057PT20671584F10/20/202511/12/2025Black Screen
SPEA-1144PT2067142AE11/24/202511/24/2025No Boot - Black Screen
      
 

I am trying to count the number of repairs based on serial number in this table.  But there are some duplicates.  However, if you look at the rows with red font, you will see that the serial numbers, though they are the same, were not being repaired for the same reason.  So, these need to be counted as 2 separate repairs.  If the repairs to the same serial number are for the SAME symptom, we only count it once.

What would be a good approach to creating a function that will count this into a cell on a separate table?

Any assistance would be greatly appreciated.

2 Replies

  • IlirU's avatar
    IlirU
    Brass Contributor

     

    Apply this formula:

     

    =COUNTA(UNIQUE(TRIMRANGE(CHOOSECOLS(A2:F10, {3,6})))) / 2

     

    HTH

     

    Regards,

    IlirU

  • If i correctly understand 7 is the result for the sample dataset.

    =SUMPRODUCT(1/COUNTIFS(C2:C9,C2:C9,F2:F9,F2:F9))

     

Resources