Large function not returning the expected value

vladi305

Board Regular
Joined
Jan 12, 2023
Messages
88
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
On this worksheet we're looking for the 5 highest values on column D
The formula here is LARGE(B$3:B$38,1) and so on until LARGE(B$3:B$38,5)
Now on column E we're getting the corresponding value from Column A
We're using the match function with the large function
=MATCH(LARGE(B$3:B$38,1),B3:B38,0) and it works fine until it finds multiple values
On the attached picture the first two return the correct corresponding value which is the number 27 being the highest value and 8 being the 2nd highest value but the third then it start returning number 1 which is the 3rd highest value it finds because then it has 19, 24 and 26

Any idea how to work around this to get all these values
 

Attachments

  • Pic52.jpg
    Pic52.jpg
    59.9 KB · Views: 33

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
How about
Excel Formula:
=TAKE(SORT(CHOOSECOLS(A3:B38,2,1),1,-1),5)
 
Upvote 0
Solution
Boy, a lot of work when it isn't posted using XL2BB!
Book1
ABCDE
1148.38%87.94%27
2224.19%85.40%8
3362.44%84.65%12
4414.01%
5516.10%
6655.44%
7781.22%
8885.40%
9982.06%
101067.04%
111132.28%
121284.65%
131383.35%
141429.81%
151520.40%
161623.35%
171770.62%
181876.14%
191937.61%
202018.90%
212112.38%
222275.76%
232343.31%
242427.46%
252520.46%
262635.17%
272787.94%
282837.69%
Sheet1
Cell Formulas
RangeFormula
A1:A28A1=SEQUENCE(28)
B1:B28B1=ROUND(RANDARRAY(28,,0.1,0.9,0),4)
D1:D3D1=LARGE(B1#,SEQUENCE(3))
E1:E3E1=XLOOKUP(D1#,B1#,A1#)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B28Cell Valuetop 3 valuestextNO
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top