# VLOOKUP - Multiple Entries, Find Last

#### Decumanus Maximus

##### New Member
I've been searching but I can't find the answer (to what seems a simple question). Here's an example:

-----ColumnA---ColumnB
RowA___1________10___
RowB___2________20___
RowC___3________30___
RowD___1________40___

If I'm using VLOOKUP on ColumnA for "1", it'll return "10" from ColumnB. I want it to return the last entry of "1" in ColumnA which would return "40" from ColumnB. That's it! I'm sure it is something simple but I'm not that smart.

### Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

#### barry houdini

##### MrExcel MVP
Try

=LOOKUP(2,1/(A1:A4=1),B1:B4)

the red 1 is the lookup value......

#### Decumanus Maximus

##### New Member
Excellent! I appreciate the quick response plus time and effort. God bless.

Replies
6
Views
162
Replies
1
Views
184
Replies
14
Views
295
Replies
4
Views
253
Replies
1
Views
312

1,191,717
Messages
5,988,259
Members
440,146
Latest member
rgomes8

### 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.

### Which adblocker are you using?

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

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