vlookup

ali zaib

Active Member
Joined
Nov 21, 2010
Messages
412
we use vlookup for match value but vlookup match only 1st value
can an option available in excel that if a number repeat many time vlookup match with all
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
we use vlookup for match value but vlookup match only 1st value
can an option available in excel that if a number repeat many time vlookup match with all

A2:B10 houses a table of interest and E2 a look up value of interest.

E3:
Rich (BB code):
=COUNTIF(A2:A10,E2)

E4: List of Results

E5, control+shift+enter (CSE), not just enter, and copy down:
Rich (BB code):
=IF(ROWS(E$5:E5)<=E$3,INDEX($B$2:$B$10,SMALL(IF($A$2:$A$10=E$2,
 ROW($A$2:$A$10)-ROW($A$2)+1),ROWS(E$5:E5))),"")

CSE means: Press down the control and shift keys together while you hit the enter key.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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