Top 5 of the series

  • Thread starter Thread starter yclhk
  • Start date Start date
Y

yclhk

How to show the top 5 of a series of numbers ? The numbers are updated
regularly. Formatting cells setting is expected but how to set the function
formula ?
 
Hi,

Put this in a cell and drag down 4 rows to get the top 5 in the range

=LARGE($A$1:$A$50,ROW(A1))

Mike
 
Assuming the series of numbers is in A1:A10, select the cells in which
you want to top five elements to be returned, type the formula

=LARGE($A$1:$A$10,ROW(INDIRECT("1:5")))

and press CTRL SHIFT ENTER rather than just ENTER. Since this is an
Array Formula, you *must* press CTRL SHIFT ENTER
rather than just ENTER when you first enter the formula
and whenever you edit it later. If you do this properly,
Excel will display the formula in the Formula Bar enclosed
in curly braces { }. (You do not type the curly braces -
Excel includes them automatically.) The formula will not work
properly
if you do not use CTRL SHIFT ENTER. See
http://www.cpearson.com/excel/ArrayFormulas.aspx for lots
more information about array formulas.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 
Hi, Thanks for Mike & Chip. Both ways are worked.

However, I wish to show the top five result within the original series of
numbers. I had tried to enter the formula in the formula field of
conditional formatting but not work.

Thanks again,

yclhk
 
Select your cells, say A1:A10. Open the Conditional Formatting dialog
from the Format menu. Change "Cell Value Is" to "Formula Is", and
enter the following formula:

=NOT(ISERROR(MATCH(A1,LARGE($A$1:$A$10,ROW(INDIRECT("1:5"))),0)))

Select your format and click OK. The largest 5 elements will be
formatted.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 
Back
Top