Vlookup - Return All matches

gizzylover

Board Regular
Joined
Nov 9, 2005
Messages
55
I've tried searching the boards for Vlookup questions, but I'm not smart enough to figure out to modify previous postings to my current need - so appreciate your patience....

If I want to return ALL values found for a Vlookup (instead of first one found), how do I do that?
 
It's called LMV

What follows is a repeat of post #42 with LMV incorporated...


Go to DARTS offers.
Activate Formulas | Name Manager.
Activate the New tab.
Enter Lrow in the Name box.
Enter the following in the Refers to box:
Rich (BB code):
=MATCH(9.99999999999999E+307,'DARTS offers'!A:A)
Click OK.

Define Arange using the foregoing procedure as referring to:
Rich (BB code):
='DARTS offers'!$A$2:INDEX('DARTS offers'!$A:$A,Lrow)
Define Brange using the foregoing procedure as referring to:
Rich (BB code):
='DARTS offers'!$B$2:INDEX('DARTS offers'!$B:$B,Lrow)

I hope you already correctly done the foregoing.

Go to LMV.

B3 houses an item of interest.

D3, just enter:
Rich (BB code):
=COUNTIF(Brange,B3)

E3, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IF(ROWS(E$3:E3)<=$D$3,INDEX(Brange,SMALL(IF(Arange=$B$3,
  ROW(Brange)-ROW(INDEX(Brange,1,1))+1),ROWS(E$3:E3))),"")

You can of course opt for cells other than B3, D3, and E3.

Hope this clear things up for you.
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I'm not seeing what changed there? I was already entering the code on LMV page in D3 and E3. One thing I did notice was that under Name Manager, the code for Lrow changes at the end after I enter it. !A:A) changes to !XFC:XFC)
 
Upvote 0
I'm not seeing what changed there? I was already entering the code on LMV page in D3 and E3. One thing I did notice was that under Name Manager, the code for Lrow changes at the end after I enter it. !A:A) changes to !XFC:XFC)

An oversight. Lrow should be:
Rich (BB code):
=MATCH(9.99999999999999E+307,'DARTS offers'!$A:$A)
 
Upvote 0
I can't even figure out this table; it says I can click to see formulas, but I don't. Surely I'm missing something. I tried to post but could not use insert excel chart feature from the menu items. Frustration - just trying to use this site.
 
Upvote 0
I can't even figure out this table; it says I can click to see formulas, but I don't. Surely I'm missing something. I tried to post but could not use insert excel chart feature from the menu items. Frustration - just trying to use this site.

Could you describe the problem you want to solve and post a relevant sample?
 
Upvote 0
Care to elaborate?

i have a lot of data shiftwise production in one sheet
i want to get maximum number produced in each shift in another sheet could you please help

MAX OF SHIFT
30/11/15A25
30/11/15A95
30/11/15A34 30/11/15B78
30/11/15A55 30/11/15C94
30/11/15A26
30/11/15A95
30/11/15B46
30/11/15B65
30/11/15B25
30/11/15B78
30/11/15C35
30/11/15C45
30/11/15C15
30/11/15C94
30/11/15C55

<colgroup><col><col><col><col span="4"><col></colgroup><tbody>
</tbody>
 
Upvote 0
i have a lot of data shiftwise production in one sheet
i want to get maximum number produced in each shift in another sheet could you please help

MAX OF SHIFT
30/11/15A2530/11/15A95
30/11/15A3430/11/15B78
30/11/15A5530/11/15C94
30/11/15A26
30/11/15A95
30/11/15B46
30/11/15B65
30/11/15B25
30/11/15B78
30/11/15C35
30/11/15C45
30/11/15C15
30/11/15C94
30/11/15C55

<tbody>
</tbody>

Are the pairs, that is, date and shift conbinations, given in the destination sheet? If so, we just need to determine the corresponding max value...
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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