Re: Can't get this to work...
Mr. Aladin posted this great method for creating a top 10 list. I am attempting to adopt this to a spreadsheet however I need excel to only add a name to the top ten if the value in another cell is equal to a text string.
Still a newbie so any help would be greatly appreciated,
Go Bucks..
Conditional Top 10 List LilStevie.xls |
---|
|
---|
| A | B | C | D | E | F |
---|
1 | | | | | x | |
---|
2 | | | | | 3 | |
---|
3 | | | | | 5 | |
---|
4 | Name | Score | Text | | Top Score(s) | Top Performer(s) |
---|
5 | dawn | 75 | x | | 90 | brian |
---|
6 | damon | 85 | y | | 90 | jon |
---|
7 | dan | 70 | x | | 75 | dawn |
---|
8 | brian | 90 | x | | 75 | stevie |
---|
9 | christine | 85 | y | | 75 | matt |
---|
10 | ian | 80 | y | | | |
---|
11 | jon | 90 | x | | | |
---|
12 | stevie | 75 | x | | | |
---|
13 | fran | 60 | x | | | |
---|
14 | matt | 75 | x | | | |
---|
15 | | | | | | |
---|
|
---|
E1: x
which houses the string condition.
E2: 3
which houses the desired size of the Top N list.
E3:
=SUM(IF(C5:C14=E1,IF(B5:B14>=LARGE(IF(C5:C14=E1,B5:B14,""),E2),1,0)))
which must be confirmed with control+shift+enter (not just with enter).
This establishes the factual size of the Top N list.
E5:
=IF(ROWS(E$5:E5)<=$E$3,LARGE(IF($C$5:$C$14=$E$1,$B$5:$B$14),ROWS(E$5:E5)),"")
which must be confirmed with control+shift+enter (not just with enter) the copied down.
This determines the actual Top N scores.
F5:
=IF(N(E5),INDEX(A$5:A$14,SMALL(IF(B$5:B$14=E5,ROW(B$5:B$14)-ROW(B$5)+1),COUNTIF(E$5:E5,E5))),"")
which must be confirmed with control+shift+enter (not just with enter) the copied down.
This determines the actual names associated wit the Top N scores.