Vlookup

Abdulkhadar

Board Regular
Joined
Nov 10, 2013
Messages
165
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Hello Excel Experts,
I want to lookup the values in decreasing order from column A then lookup the data from Column B with matching with decreasing ordered value at Column F. i. e as follows

ABCD
E
F
1marksnamerank name
2580amk 1 =LARGE(A:A,D2) amk
3475rak 2 =LARGE(A:A,D3) dam
4525and
3 =LARGE(A:A,D4) znd
5568znd 4 =LARGE(A:A,D5) tab
6567arm 5 =LARGE(A:A,D6) arm
7580dam
8375tan
9568tab

<colgroup><col><col span="4"><col><col></colgroup><tbody>
</tbody>

I use the formula at col F =VLOOKUP(LARGE(A:A,D2),A:B,2,FALSE)
but it shows the same name for the same value.
Thanks in advance
 

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.

Book1
ABEF
1marksnamemarksname
2580amk580amk
3475rak580dam
4525and568znd
5568znd568tab
6567arm567arm
7580dam525and
8375tan475rak
9568tab375tan
10
Sheet1


In E2 just enter and copy down:

=LARGE($A$2:$A$9,ROWS($E$2:E2))

In F2 control+shift+enter, not just enter, and copy down:

=IF($E2="","",INDEX($B$2:$B$9,SMALL(IF($A$2:$A$9=$E2,ROW($B$2:$B$9)-ROW($B$2)+1),COUNTIFS($E$2:E2,E2))))
 
Upvote 0
ABEF
1marksnamemarksname
2580amk580amk
3475rak580dam
4525and568znd
5568znd568tab
6567arm567arm
7580dam525and
8375tan475rak
9568tab375tan
10

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1


In E2 just enter and copy down:

=LARGE($A$2:$A$9,ROWS($E$2:E2))

In F2 control+shift+enter, not just enter, and copy down:

=IF($E2="","",INDEX($B$2:$B$9,SMALL(IF($A$2:$A$9=$E2,ROW($B$2:$B$9)-ROW($B$2)+1),COUNTIFS($E$2:E2,E2))))

Wow nice, thanks sir,
 
Upvote 0

Forum statistics

Threads
1,214,938
Messages
6,122,346
Members
449,080
Latest member
Armadillos

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