Count duplicates

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
657
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Not counting duplicates at this time. How can you count duplicates? Heres what I'm using. AC 9&10=count. Comparing 2 rows for count.
thanks

Cell Formulas
RangeFormula
L9:L10L9=IFERROR(VLOOKUP($A9,TeamRankings!$AT$3:$AV$33,3,0),"")
N9N9=IFERROR(VLOOKUP(A9,TeamRankings!BN2:BQ33,4,0),"")
O9:O10O9=IFERROR(VLOOKUP(A9,TeamRankings!$BN$3:$BS$33,6,0),"")
Q9:Q10Q9=IFERROR(VLOOKUP(A9,TeamRankings!$BN$3:$BR$32,5,0),"")
N10N10=IFERROR(VLOOKUP(A10,TeamRankings!BN2:BQ33,4,0),"")
U9U9=IFERROR(VLOOKUP(A9,TeamRankings!J3:M32,4,0),"")
V9:V10V9=IFERROR(VLOOKUP(A9,TeamRankings!S:V,4,0),"")
X9:X10X9=IFERROR(VLOOKUP($A9,TeamRankings!$BT:$CE,12,0),"")
Y9:Y10Y9=IFERROR(VLOOKUP(A9,TeamRankings!$BT:$CG,14,0),"")
Z9:Z10Z9=IFERROR(VLOOKUP(A9,TeamRankings!$BT:$CH,15,0),"")
AC9AC9=COUNTIF(L9,"<"&L10)+COUNTIF(N9,">"&N10)+COUNTIF(O9,">"&O10)+COUNTIF(Q9,">"&Q10)+COUNTIF(U9,">"&U10)+COUNTIF(V9,">"&V10)+COUNTIF(X9,">"&X10)+COUNTIF(Y9,">"&Y10)+COUNTIF(Z9,">"&Z10)
U10U10=IFERROR(VLOOKUP(A10,TeamRankings!J3:M32,4,0),"")
AC10AC10=COUNTIF(L10,"<"&L9)+COUNTIF(N10,">"&N9)+COUNTIF(O10,">"&O9)+COUNTIF(Q10,">"&Q9)+COUNTIF(U10,">"&U9)+COUNTIF(V10,">"&V9)+COUNTIF(X10,">"&X9)+COUNTIF(Y10,">"&Y9)+COUNTIF(Z10,">"&Z9)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try this in AC10
Excel Formula:
=SUMPRODUCT((COLUMN(L10:Z10)={12;14;15;17;21;22;24;25;26})*(L9:Z9=L10:Z10))
 
Upvote 0
What duplicates are you trying to count? The 2 33%?
 
Upvote 0
Try this in AC10
Excel Formula:
=SUMPRODUCT((COLUMN(L10:Z10)={12;14;15;17;21;22;24;25;26})*(L9:Z9=L10:Z10))
Yes, it counts 1, but I need it incorporated to the existing formula, so it counts everything.
 
Upvote 0
Yes. It needs to be in the current formula so it counts everything.
So you don't want to count duplicates, you want to count values that are either >= or <= than the corresponding cell.

Insert an = symbol after each < and > in your original formula.
 
Upvote 0
Solution
So you don't want to count duplicates, you want to count values that are either >= or <= than the corresponding cell.

Insert an = symbol after each < and > in your original formula.
Well, I added your formula to the end of my count formula, and it added 1.
Yes, <= or >=, I will add.
Thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top