LARGE, IF, and VLOOKUP Function Help

yoga123

New Member
Joined
Jun 21, 2017
Messages
1
Using the LARGE, VLOOKUP, and IF functions, I am trying to sort determine the 3 largest values from a column with duplicate values. I'd like the function to find a subset in Col A and produce the first, second, and third largest values from the respective subset shown in Col B. Using the formula below, i'm able to find the largest value from each subset. Keep in mind that I have posted this in another sheet where $A2 is 144 etc.

I'd like to eventually write a macro to automate this process. Any help would be greatly appreciated.

=LARGE(IF(B2:B14<LARGEB2:B14,1),VLOOKUP($A2,$A$2:$B$14,4,FALSE),1),1)

144396.5887451
144390.2167664
144384.9399414
144380.4719543

<colgroup><col><col></colgroup><tbody>
</tbody>
288143.4509735
288142.2271576
288141.6318512
288109.0777283
358367.736084
358364.7216797
358363.9846497
358363.8448792
358363.1685486
358362.6156311

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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