Reference to the N-largest value in an array
Try this *array* formula:
=ADDRESS(MAX((A1:B5=LARGE(A1:B5,2))*ROW(A1:B5)),MA X((A1:B5=LARGE(A1:B5,2))*C
OLUMN(A1:B5)),4)
--
Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of
the regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
You *must also* use CSE when revising the formula.
This returns a relative reference.
The last comma and 4 ( ,4 ) can be eliminated if you want an absolute
reference:
=ADDRESS(MAX((A1:B5=LARGE(A1:B5,2))*ROW(A1:B5)),MA X((A1:B5=LARGE(A1:B5,2))*C
OLUMN(A1:B5)))
--
HTH,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
wrote in message
oups.com...
Hello
I need a formula that can give me the the array-reference of the N-
largest value in the array.
Something like:
referenceToLarge(A1:B5, 2) that gives me "A3", if A3 holds the second
largest value in the range A1:B5.
Thanks
Michael
|