ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to use large function? (https://www.excelbanter.com/excel-discussion-misc-queries/132208-how-use-large-function.html)

Eric

How to use large function?
 
I get a list of numbers as show below
58,58,58,39,39,52,37,43,55,58,55,52.
I would like to the largest one, which is 58, and the second largest one,
which is 55, and the third largest one, which is 52. But when I use the
function large, which don't work the way I describe, and the first, second,
third largest numbers is still 58 in this lists.
Does anyone have any suggestion on how find the first largest number is 58,
and the second largest number is 55, and the third largest number is 52?
Thank you in advance
Eric

Bob Phillips

How to use large function?
 
That is because there are 3 58s, so 58 is first, second, third and fourth
largess.

If you want to ignore duplicates, use

=LARGE(IF(MATCH(B1:B12,B1:B12,0)=ROW(B1:B12)-MIN(ROW(B1:B12))+1,B1:B12),2)

which is an array formula, so commit with Ctrl-Shift-Enter.

The ,2 at the end is the Large index.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Eric" wrote in message
...
I get a list of numbers as show below
58,58,58,39,39,52,37,43,55,58,55,52.
I would like to the largest one, which is 58, and the second largest one,
which is 55, and the third largest one, which is 52. But when I use the
function large, which don't work the way I describe, and the first,
second,
third largest numbers is still 58 in this lists.
Does anyone have any suggestion on how find the first largest number is
58,
and the second largest number is 55, and the third largest number is 52?
Thank you in advance
Eric




pinmaster

How to use large function?
 
Hi,

Try something like this:

Say you have 10 numbers in A1:A10, in B1 type:
=MAX(A1:A10)
in C1:
=MAX(IF(A1:A10<B1,A1:A10)) entered using Ctrl+Shift+Enter
in D1:
=MAX(IF(A1:A10<C1,A1:A10)) again enter using Ctrl+Shift+Enter

Hope this helps!
Jean-Guy

"Eric" wrote:

I get a list of numbers as show below
58,58,58,39,39,52,37,43,55,58,55,52.
I would like to the largest one, which is 58, and the second largest one,
which is 55, and the third largest one, which is 52. But when I use the
function large, which don't work the way I describe, and the first, second,
third largest numbers is still 58 in this lists.
Does anyone have any suggestion on how find the first largest number is 58,
and the second largest number is 55, and the third largest number is 52?
Thank you in advance
Eric


Eric

How to use large function?
 
Thank everyone for suggestions
Eric


All times are GMT +1. The time now is 04:23 AM.

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