Forum Discussion

Vicente Heyermann Vial's avatar
Vicente Heyermann Vial
Copper Contributor
Mar 16, 2018
Solved

Count entries on a category omitting duplicates and blank cells

Good afternoon, I hope you can help me I'm working on a spreadsheet of injured players from a football club, I have on column "A" the category of the player, on column "B" the name of the players, an...
  • Vicente Heyermann Vial's avatar
    Vicente Heyermann Vial
    Mar 17, 2018
    Thank you very much, your formula actually only works when there is only one duplicate, because you count it as half a point, when you add another duplicate it starts increasing, but it inspired me to find the actual solution, instead of assigning a value of 0.5 when the countifs is > 1, I assigned a value of 1/countifs, so it always adds to 1, the new formula is:
    {=SUM(IF(COUNTIFS($A$2:$A$11,E3,$B$2:$B$11,$B$2:$B$11)>1,1/COUNTIFS($A$2:$A$11,E3,$B$2:$B$11,$B$2:$B$11),COUNTIFS($A$2:$A$11,E3,$B$2:$B$11,$B$2:$B$11)))}

    Again, thank you very much

Resources