ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using VLOOKUP,what if I have more than one occurence of my Lookup. (https://www.excelbanter.com/excel-worksheet-functions/10470-using-vlookup-what-if-i-have-more-than-one-occurence-my-lookup.html)

Mondie

Using VLOOKUP,what if I have more than one occurence of my Lookup.
 
I am trying to create a function that will look up each occurence of the
Lookup value and return the corresponding name. Is this possible and if so,
how do I do it?

Peo Sjoblom

I would personally use the autofilter for this and copy and paste filtered
list, there are some workarounds using index and small which can be seen here

http://tinyurl.com/56nv4


Regards,

Peo Sjoblom

"Mondie" wrote:

I am trying to create a function that will look up each occurence of the
Lookup value and return the corresponding name. Is this possible and if so,
how do I do it?


Mondie

I have several lists to create. I tried looking at the reference you
supplied, but it returns an error message.

Here is the part of the table I am working with:
Class Name
1 02 John
2 03 Sally
3 05 Jim
4 02 Tom
5 03 Joe

What I need to do is put all of the "02's" on one sheet, the "03's" on
another sheet, and so on. I only need the names to post to the other sheets.
For example:

Name
John
Tom

Thanks in advance for the help!





"Peo Sjoblom" wrote:

I would personally use the autofilter for this and copy and paste filtered
list, there are some workarounds using index and small which can be seen here

http://tinyurl.com/56nv4


Regards,

Peo Sjoblom

"Mondie" wrote:

I am trying to create a function that will look up each occurence of the
Lookup value and return the corresponding name. Is this possible and if so,
how do I do it?


Peo Sjoblom

Apply autofilter, filter on the different Classes and then select and copy
and paste
The link I provided is a formula solution where you would put something like

=INDEX(Name_Range,SMALL(IF(Class_Range=2,ROW(Class _Range)),ROW(1:1)))

entered with ctrl + shift & enter and copied down


Regards,

Peo Sjoblom

"Mondie" wrote:

I have several lists to create. I tried looking at the reference you
supplied, but it returns an error message.

Here is the part of the table I am working with:
Class Name
1 02 John
2 03 Sally
3 05 Jim
4 02 Tom
5 03 Joe

What I need to do is put all of the "02's" on one sheet, the "03's" on
another sheet, and so on. I only need the names to post to the other sheets.
For example:

Name
John
Tom

Thanks in advance for the help!





"Peo Sjoblom" wrote:

I would personally use the autofilter for this and copy and paste filtered
list, there are some workarounds using index and small which can be seen here

http://tinyurl.com/56nv4


Regards,

Peo Sjoblom

"Mondie" wrote:

I am trying to create a function that will look up each occurence of the
Lookup value and return the corresponding name. Is this possible and if so,
how do I do it?



All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com