"Exclude duplicate" in the countifs formula.

Solved
stitchbouck Posted messages 137 Status Member -  
stitchbouck Posted messages 137 Status Member -
Hello,

In the attached anonymized file as an example, I would like to find out how to include in my initial formula "countifs" the notion of duplicates and exclude repeated occurrences. Or use a completely different formula if necessary!

https://www.cjoint.com/c/KDBkqUrRVPD

1st criterion
It looks for dates in column 2 to return the number of occurrences per month.

2nd criterion
It checks if column F is filled.

3rd criterion
I would like to exclude possible duplicates in column F (for x identical occurrences in column F, count only 1), and I am stuck there.

In the original file, the values are in another tab, and this tab contains the "source" data, I would like to avoid modifying this tab...

Does anyone see a solution?

Thank you!!

6 answers

  1. yclik Posted messages 3874 Registration date   Status Member Last intervention   1 609
     
    Hello
    a suggestion
    in G2
    =COUNTIF($F$2:$F$13,F2)


    in H2 for February
    =SUMPRODUCT((MONTH(B2:B13)=2)*(F2:F13<>"")*(G2:G13=1))


    but it is not stated whether the exclusion of duplicates is done for the concerned month or for the entire column.
    1
    1. Vaucluse Posted messages 27336 Registration date   Status Contributor Last intervention   6 453
       
      Hello (and hi Yclic)
      I think this solution will systematically eliminate all multiplied occurrences, including their first appearance
      I could be wrong, but for it to work, it should be written in G2
      =COUNTIF($F$2:F2,F2), with the F field evolving so that it shows 1 at the first appearance.
      We can also write
      =IF(F2="","",COUNTIF($F$2:F2,F2))
      which will limit in the sum formula
      =SUMPRODUCT((MONTH(B2:B13)=2)*(G2:G13=1))
      To be verified (I'm in a rush)
      best regards
      0