ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Choose best values in a list (https://www.excelbanter.com/excel-worksheet-functions/249853-choose-best-values-list.html)

doctorhappy

Choose best values in a list
 
How can I select the top x number of values in a range of numerical data? For
example a row contains 2,5,10,4,20,10 and I want to know the 4 highest values
(20, 10, 10 and 5 in this example).
Alternatively, is it possible to sort letters in one cell in alphabetical
order? Eg cell contains EBACDABE to be sorted as AABBCDEE...

Jacob Skaria

Choose best values in a list
 
--If you have the numbers 2,5,10,4,20,10 in cell A1:F1 try the below formula
and copy down to 4 cells to return the best values...

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

--You will need to write a user defined function to sort individual
characters of that cell...

--
Jacob


"doctorhappy" wrote:

How can I select the top x number of values in a range of numerical data? For
example a row contains 2,5,10,4,20,10 and I want to know the 4 highest values
(20, 10, 10 and 5 in this example).
Alternatively, is it possible to sort letters in one cell in alphabetical
order? Eg cell contains EBACDABE to be sorted as AABBCDEE...



All times are GMT +1. The time now is 05:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com