VLOOKUP second value

AbrahamGluck

Board Regular
Joined
Apr 12, 2016
Messages
129
Office Version
  1. 365
Platform
  1. Windows
Hi

I would like VLOOKUP to return the first or second or third value that's matched, depends on cell A1, Cell A1 will be 1, 2 or 3 etc and the vlookup return should be 1, 2 or 3
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi

I would like VLOOKUP to return the first or second or third value that's matched, depends on cell A1, Cell A1 will be 1, 2 or 3 etc and the vlookup return should be 1, 2 or 3

No cell is mentioned which houses the look up value, neither the look up table...

Let B1 house a look up value of interest and let's name the look up table TABLE.

In C1 control+shift+enter, not just enter:

=INDEX(TABLE,SMALL(IF(INDEX(TABLE,0,1)=$B1,ROW(TABLE)-ROW(INDEX(TABLE,1,1))+1),$A1),2)

Note that TABLE is a 2-column table.
 
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,840
Members
449,411
Latest member
adunn_23

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