Multiple with same %, need 2nd & 3rd

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
660
Office Version
  1. 2019
Platform
  1. Windows
Hello,
If you have multiple of the same % (T:T), how do you retrieve the 2nd and 3rd name (S:S) of the same %?
Looking to fill S:S.
Im using the following:
thank you

Cell Formulas
RangeFormula
S8:S18S8=INDEX($N$7:$N$36,MATCH(T8,$Q$7:$Q$36,0),1)
T8T8=MAX($Q$7:$Q$36)
U8:U18U8=COUNTIF($Q$7:$Q$36,T8)
T9T9=LARGE($Q$7:$Q$36,2)
T10T10=LARGE($Q$7:$Q$36,3)
T11T11=LARGE($Q$7:$Q$36,4)
T12T12=LARGE($Q$7:$Q$36,5)
T13T13=LARGE($Q$7:$Q$36,6)
T14T14=LARGE($Q$7:$Q$36,7)
T15T15=LARGE($Q$7:$Q$36,8)
T16T16=LARGE($Q$7:$Q$36,9)
T17T17=LARGE($Q$7:$Q$36,10)
T18T18=LARGE($Q$7:$Q$36,11)
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Can you also post the data from columns N & Q
 
Upvote 0
Can you also post the data from columns N & Q
Can you also post the data from columns N & Q
Here are the columns you wanted to see.
Also want to make sure the Counts (U:U) are correct.
Everything in S,T,U.

Cell Formulas
RangeFormula
O7:O29O7=COUNTIFS($A$3:$A$1000,"W",$H$3:$H$1000,N7)
P7:P29P7=COUNTIFS($A$3:$A$1000,"L",$H$3:$H$1000,N7)
S7:S29S7=INDEX($N$7:$N$36,MATCH(T7,$Q$7:$Q$36,0),1)
T7T7=MAX($Q$7:$Q$36)
U7:U29U7=COUNTIF($Q$7:$Q$30,T7)
T8T8=LARGE($Q$7:$Q$36,2)
T9T9=LARGE($Q$7:$Q$36,3)
T10T10=LARGE($Q$7:$Q$36,4)
T11T11=LARGE($Q$7:$Q$36,5)
T12T12=LARGE($Q$7:$Q$36,6)
T13T13=LARGE($Q$7:$Q$36,7)
T14T14=LARGE($Q$7:$Q$36,8)
T15T15=LARGE($Q$7:$Q$36,9)
T16T16=LARGE($Q$7:$Q$36,10)
T17T17=LARGE($Q$7:$Q$36,11)
T18T18=LARGE($Q$7:$Q$36,12)
T19T19=LARGE($Q$7:$Q$36,13)
T20T20=LARGE($Q$7:$Q$36,14)
T21T21=LARGE($Q$7:$Q$36,15)
T22T22=LARGE($Q$7:$Q$36,16)
T23:T29T23=LARGE($Q$7:$Q$36,17)
N7:N31N7=IFERROR(LOOKUP(2, 1/((COUNTIF($N$7:N7,$H$3:$H$500)=0)*($H$3:$H$500<>"")),$H$3:$H$500),"")
Q7:Q31Q7=IFERROR(O7/(O7+P7),"")
 
Upvote 0
How about
+Fluff 1.xlsm
NOPQRSTU
6TeamWLW %TeamMAXCount %
7SAC00ATL100%2
8BOS2167%MIA100%2
9MIL3633%CHA75%3
10CHA3175%PHX75%3
11ATL10100%LAL75%3
12UTA4267%BOS67%3
13GS2167%UTA67%3
14MEM1150%GS67%3
15OKC020%MEM50%3
16LAC1325%BRK50%3
17PHX3175%TOR50%3
18WAS020%MIL33%1
19BRK1150%LAC25%1
20IND020%SAC0%9
21CHI010%OKC0%9
22DEN020%WAS0%9
23LAL3175%IND0%9
24MIN010%CHI0%9
25TOR2250%DEN0%9
26MIA20100%MIN0%9
27ORL010%ORL0%9
28HOU010%HOU0%9
29DAL010%
Main
Cell Formulas
RangeFormula
S7:S28S7=INDEX($N$6:$N$35,AGGREGATE(15,6,(ROW($N$6:$N$35)-ROW($N$6)+1)/($Q$6:$Q$35=T7),COUNTIFS(T$7:T7,T7)))
T7:T28T7=LARGE($Q$6:$Q$35,ROWS(T$7:T7))
U7:U28U7=COUNTIF($Q$6:$Q$35,T7)
 
Upvote 0
How about
+Fluff 1.xlsm
NOPQRSTU
6TeamWLW %TeamMAXCount %
7SAC00ATL100%2
8BOS2167%MIA100%2
9MIL3633%CHA75%3
10CHA3175%PHX75%3
11ATL10100%LAL75%3
12UTA4267%BOS67%3
13GS2167%UTA67%3
14MEM1150%GS67%3
15OKC020%MEM50%3
16LAC1325%BRK50%3
17PHX3175%TOR50%3
18WAS020%MIL33%1
19BRK1150%LAC25%1
20IND020%SAC0%9
21CHI010%OKC0%9
22DEN020%WAS0%9
23LAL3175%IND0%9
24MIN010%CHI0%9
25TOR2250%DEN0%9
26MIA20100%MIN0%9
27ORL010%ORL0%9
28HOU010%HOU0%9
29DAL010%
Main
Cell Formulas
RangeFormula
S7:S28S7=INDEX($N$6:$N$35,AGGREGATE(15,6,(ROW($N$6:$N$35)-ROW($N$6)+1)/($Q$6:$Q$35=T7),COUNTIFS(T$7:T7,T7)))
T7:T28T7=LARGE($Q$6:$Q$35,ROWS(T$7:T7))
U7:U28U7=COUNTIF($Q$6:$Q$35,T7)
Looks good with your spreadsheet, but here are my results using your formulas:
Cell Formulas
RangeFormula
N7:N29N7=IFERROR(LOOKUP(2, 1/((COUNTIF($N$7:N7,$H$3:$H$500)=0)*($H$3:$H$500<>"")),$H$3:$H$500),"")
O7:O29O7=COUNTIFS($A$3:$A$1000,"W",$H$3:$H$1000,N7)
P7:P29P7=COUNTIFS($A$3:$A$1000,"L",$H$3:$H$1000,N7)
Q7:Q29Q7=IFERROR(O7/(O7+P7),"")
S7:S29S7=INDEX($N$6:$N$35,AGGREGATE(15,6,(ROW($N$6:$N$35)-ROW($N$6)+1)/($Q$6:$Q$35=T7),COUNTIFS(T$7:T7,T7)))
T7:T29T7=LARGE($Q$6:$Q$35,ROWS(T$7:T7))
U7:U29U7=COUNTIF($Q$6:$Q$35,T7)

How about
+Fluff 1.xlsm
NOPQRSTU
6TeamWLW %TeamMAXCount %
7SAC00ATL100%2
8BOS2167%MIA100%2
9MIL3633%CHA75%3
10CHA3175%PHX75%3
11ATL10100%LAL75%3
12UTA4267%BOS67%3
13GS2167%UTA67%3
14MEM1150%GS67%3
15OKC020%MEM50%3
16LAC1325%BRK50%3
17PHX3175%TOR50%3
18WAS020%MIL33%1
19BRK1150%LAC25%1
20IND020%SAC0%9
21CHI010%OKC0%9
22DEN020%WAS0%9
23LAL3175%IND0%9
24MIN010%CHI0%9
25TOR2250%DEN0%9
26MIA20100%MIN0%9
27ORL010%ORL0%9
28HOU010%HOU0%9
29DAL010%
Main
Cell Formulas
RangeFormula
S7:S28S7=INDEX($N$6:$N$35,AGGREGATE(15,6,(ROW($N$6:$N$35)-ROW($N$6)+1)/($Q$6:$Q$35=T7),COUNTIFS(T$7:T7,T7)))
T7:T28T7=LARGE($Q$6:$Q$35,ROWS(T$7:T7))
U7:U28U7=COUNTIF($Q$6:$Q$35,T7)
Looks good on your end, but here are my results using your formula. Everytime is hit save the results change.

Cell Formulas
RangeFormula
O7:O29O7=COUNTIFS($A$3:$A$1000,"W",$H$3:$H$1000,N7)
P7:P29P7=COUNTIFS($A$3:$A$1000,"L",$H$3:$H$1000,N7)
S7:S29S7=INDEX($N$6:$N$35,AGGREGATE(15,6,(ROW($N$6:$N$35)-ROW($N$6)+1)/($Q$6:$Q$35=T7),COUNTIFS(T$7:T7,T7)))
T7:T29T7=LARGE($Q$6:$Q$35,ROWS(T$7:T7))
U7:U29U7=COUNTIF($Q$6:$Q$35,T7)
N7:N30N7=IFERROR(LOOKUP(2, 1/((COUNTIF($N$7:N7,$H$3:$H$500)=0)*($H$3:$H$500<>"")),$H$3:$H$500),"")
Q7:Q30Q7=IFERROR(O7/(O7+P7),"")
 
Upvote 0
Do you have any values below row 30?
 
Upvote 0
Do you have any values below row 30?
No, everything from 31 down are blank.
Cell Formulas
RangeFormula
N7:N30N7=IFERROR(LOOKUP(2, 1/((COUNTIF($N$7:N7,$H$3:$H$499)=0)*($H$3:$H$499<>"")),$H$3:$H$499),"")
O7:O30O7=COUNTIFS($A$3:$A$999,"W",$H$3:$H$999,N7)
P7:P30P7=COUNTIFS($A$3:$A$999,"L",$H$3:$H$999,N7)
Q7:Q30Q7=IFERROR(O7/(O7+P7),"")
S7:S30S7=INDEX($N$6:$N$35,AGGREGATE(15,6,(ROW($N$6:$N$35)-ROW($N$6)+1)/($Q$6:$Q$35=T7),COUNTIFS(T$7:T7,T7)))
T7:T30T7=LARGE($Q$6:$Q$35,ROWS(T$7:T7))
U7:U30U7=COUNTIF($Q$6:$Q$35,T7)
 
Upvote 0
In that case try
+Fluff 1.xlsm
NOPQRSTU
6TeamWLW %TeamMAXCount %
7SAC4267%GS100%2
8BOS1150%MIA100%2
9MIL010%UTA80%1
10CHA2250%PHX75%2
11ATL3633%MIN75%2
12UTA4180%SAC67%2
13GS10100%MEM67%2
14MEM2167%BOS50%4
15OKC020%CHA50%4
16LAC1150%LAC50%4
17PHX3175%TOR50%4
18WAS1325%ATL33%1
19BRK020%WAS25%1
20IND020%MIL0%9
21CHI020%OKC0%9
22DEN010%BRK0%9
23LAL010%IND0%9
24MIN3175%CHI0%9
25TOR2250%DEN0%9
26MIA20100%LAL0%9
27ORL010%ORL0%9
28HOU010%HOU0%9
2900 #NUM!#NUM!0
3000 
31
Main
Cell Formulas
RangeFormula
S7:S29S7=INDEX($N$7:$N$30,AGGREGATE(15,6,(ROW($N$7:$N$30)-ROW($N$7)+1)/($Q$7:$Q$30=T7),COUNTIFS(T$7:T7,T7)))
T7:T29T7=LARGE($Q$7:$Q$30,ROWS(T$7:T7))
U7:U29U7=COUNTIF($Q$7:$Q$30,T7)
Q7:Q30Q7=IFERROR(O7/(O7+P7),"")
 
Upvote 0
In that case try
+Fluff 1.xlsm
NOPQRSTU
6TeamWLW %TeamMAXCount %
7SAC4267%GS100%2
8BOS1150%MIA100%2
9MIL010%UTA80%1
10CHA2250%PHX75%2
11ATL3633%MIN75%2
12UTA4180%SAC67%2
13GS10100%MEM67%2
14MEM2167%BOS50%4
15OKC020%CHA50%4
16LAC1150%LAC50%4
17PHX3175%TOR50%4
18WAS1325%ATL33%1
19BRK020%WAS25%1
20IND020%MIL0%9
21CHI020%OKC0%9
22DEN010%BRK0%9
23LAL010%IND0%9
24MIN3175%CHI0%9
25TOR2250%DEN0%9
26MIA20100%LAL0%9
27ORL010%ORL0%9
28HOU010%HOU0%9
2900 #NUM!#NUM!0
3000 
31
Main
Cell Formulas
RangeFormula
S7:S29S7=INDEX($N$7:$N$30,AGGREGATE(15,6,(ROW($N$7:$N$30)-ROW($N$7)+1)/($Q$7:$Q$30=T7),COUNTIFS(T$7:T7,T7)))
T7:T29T7=LARGE($Q$7:$Q$30,ROWS(T$7:T7))
U7:U29U7=COUNTIF($Q$7:$Q$30,T7)
Q7:Q30Q7=IFERROR(O7/(O7+P7),"")
When I copy your results to a new workbook, it looks great, the same results. But when I apply the formula's you recommended, I get odd results. The N:N contains a formula to get the results of Teams I've bet (H:H).
Maybe the formula in N:N is messing things up? When I copy/paste sv on N:N, I get the correct results. I didn't do anything to O,P,Q.
Is there a way to add new teams to the list in N:N, assuming I copy/paste sv of the existing list? Meaning to add teams to N31,N32,N33, etc.
The list in N:N is created from column H:H, as indicated in N:N formula. Hopefully this makes "some" sense. Here is part of the worksheet do to size (if needed).

Wagers.xlsm
ABCDEFGHIJKLMNOPQRSTU
1StatusDate Balance League Risk To Win My TeamOppSPRD$$$
2$ 86.02
3W8/6NBASPRD$ 5.00$ 4.55MILMIA-9$ 4.55Unique:23INDEX(F16:H18,MATCH(50,G16:G29,0),1)
4$ 4.55+1 for blank
5$ 90.57BalanceBest Betting Teams
6L8/7NBASPRD$ 5.00$ 4.55OKCMEM-4$ (5.00)TeamWLW %TeamMAXCount %
7$ (5.00)BRK1150%ATL100%2
8$ 85.57BalanceUTA4267%MIA100%2
9L8/8NBASPRD$ 5.00$ 4.55MILDAL-5.5$ (5.00)BOS2250%CHA80%1
10$ (5.00)SAC010%PHX75%2
11$ 80.57BalanceCHA4180%UTA75%2
12W8/9NBASPRD$ 5.00$ 4.55TORMEM-6.5$ 4.55MIL3633%UTA67%2
13$ 4.55GS2167%BRK67%3
14$ 85.12BalanceATL10100%BRK50%4
15L8/11NBASPRD$ 5.00$ 4.55DALPOR2$ (5.00)MEM1150%BOS50%5
16$ (5.00)OKC020%MEM50%4
17$ 80.12BalanceLAC1325%MIL33%1
18L8/12NBASPRD$ 5.00$ 4.55TORPHI-6.5$ (5.00)PHX3175%SAC33%1
19$ (5.00)WAS020%SAC25%1
20$ 75.12BalanceIND020%SAC0%10
21L8/20NBASPRD$ 5.00$ 4.55ORLMIL12.5$ (5.00)CHI010%OKC0%10
22$ (5.00)DEN020%WAS0%10
23$ 70.12BalanceLAL3175%IND0%9
24W8/21NBASPRD$ 5.00$ 4.55BOSPHI-6.5$ 4.55MIN010%CHI0%10
25$ 4.55TOR2250%DEN0%10
26$ 74.67BalanceMIA20100%MIN0%10
27L8/22NBASPRD$ 5.00$ 4.55HOUOKC-2$ (5.00)ORL010%ORL0%10
28$ (5.00)HOU010%HOU0%10
29$ 69.67Balance 00 #NUM!#NUM!0
30W8/23NBASPRD$ 5.00$ 4.55TORBKR-12$ 4.55DAL010%#NUM!#NUM!0
31$ 4.55
32$ 74.22Balance
33W8/24NBASPRD$ 5.00$ 4.55MIAIND-6$ 4.55
34$ 4.55
35$ 78.77Balance
36L8/25NBASPRD$ 5.00$ 4.55UTADEN-3$ (5.00) 
37$ (5.00)
38$ 73.77Balance
NBA
Cell Formulas
RangeFormula
O3O3=SUMPRODUCT(1/COUNTIF(H3:H141,H3:H141&""))
K3,K36,K33,K30,K27,K24,K21,K18,K15,K12,K9,K6K3=SUMIF(A3,"W",G3)+SUMIF(A3,"L",F3)*-1
K4,K37,K34,K31,K28,K25,K22,K19,K16,K13,K10,K7K4=SUM(K3:K3)
C5,C38,C35,C32,C29,C26,C23,C20,C17,C14,C11,C8C5=C2+K4
N7:N30N7=IFERROR(LOOKUP(2, 1/((COUNTIF($N$7:N7,$H$3:$H$499)=0)*($H$3:$H$499<>"")),$H$3:$H$499),"")
O7:O30O7=COUNTIFS($A$3:$A$999,"W",$H$3:$H$999,N7)
P7:P30P7=COUNTIFS($A$3:$A$999,"L",$H$3:$H$999,N7)
Q36,Q7:Q30Q7=IFERROR(O7/(O7+P7),"")
S7:S30S7=INDEX($N$7:$N$30,AGGREGATE(15,6,(ROW($N$7:$N$30)-ROW($N$7)+1)/($Q$7:$Q$30=T7),COUNTIFS(T$7:T7,T7)))
T7:T30T7=LARGE($Q$7:$Q$30,ROWS(T$7:T7))
U7:U30U7=COUNTIF($Q$7:$Q$30,T7)
 
Upvote 0
You have circular references, which is why you are getting problems, change the formula in N7 to
Excel Formula:
=IFERROR(LOOKUP(2, 1/((COUNTIF($N$6:N6,$H$3:$H$499)=0)*($H$3:$H$499<>"")),$H$3:$H$499),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,350
Messages
6,124,430
Members
449,158
Latest member
burk0007

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