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

[TABLE="width: 528"]
<colgroup><col><col span="4"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D
[/TD]
[TD] E
[/TD]
[TD] F
[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]marks[/TD]
[TD]name[/TD]
[TD][/TD]
[TD]rank[/TD]
[TD][/TD]
[TD] name
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]580[/TD]
[TD]amk[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD] =LARGE(A:A,D2)[/TD]
[TD] amk
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]475[/TD]
[TD]rak[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD] =LARGE(A:A,D3)[/TD]
[TD] dam
[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]525[/TD]
[TD]and[/TD]
[TD]
[/TD]
[TD]3[/TD]
[TD] =LARGE(A:A,D4)[/TD]
[TD] znd
[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]568[/TD]
[TD]znd[/TD]
[TD] [/TD]
[TD]4[/TD]
[TD] =LARGE(A:A,D5)[/TD]
[TD] tab
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]567[/TD]
[TD]arm[/TD]
[TD] [/TD]
[TD]5[/TD]
[TD] =LARGE(A:A,D6)[/TD]
[TD] arm
[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]580[/TD]
[TD]dam[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]375[/TD]
[TD]tan[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]568[/TD]
[TD]tab[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]

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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

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
marksnamemarksname
amkamk
rakdam
andznd
zndtab
armarm
damand
tanrak
tabtan

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]580[/TD]

[TD="align: right"]580[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]475[/TD]

[TD="align: right"]580[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]525[/TD]

[TD="align: right"]568[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]568[/TD]

[TD="align: right"]568[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]567[/TD]

[TD="align: right"]567[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]580[/TD]

[TD="align: right"]525[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]375[/TD]

[TD="align: right"]475[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]568[/TD]

[TD="align: right"]375[/TD]

[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</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,224,884
Messages
6,181,555
Members
453,053
Latest member
Kiranm13

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