Question Regarding Vlookup

narendra1302

Active Member
Joined
Sep 23, 2009
Messages
273
Dear All,

I am using Vlookup to get some data form one sheet to another.

I am fetching data for particular Product number. However it the Product number come more than one time - that is 2, 3, 4 times then how to get it ?

Thanks

Narendra Jadhav
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
lets assume your data is in sheet1 A2:A27 = product #
B2:B27 = data to lookup
in sheet 2 A1 is your lookup then in B1 or were ever you would like to start put in this formula and it is an array so must be entered withCtrl Shift + enter --- not just enter
Code:
=IF(COLUMNS($A$1:A1)<=COUNTIF(sheet1!$A$2:$A$27,$A1),INDEX(sheet1!$B$2:$B$27,SMALL(IF(sheet1!$A$2:$A$27=$a1,ROW(sheet1!$A$2:$A$27)-ROW(sheet1!$A$2)+1),COLUMNS($a$1:a1))),"")
and copy across
 
Upvote 0
Dear Grizz,

Thanks for showing intrest.

However how can we find the entry if we have multiple sheets - from where we have to find the entry. Sorry I had not mentioned in my first post.

Thanks
Narendra
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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