find multiple results

L

Larry Banach

I'm trying to set up a spreadsheet that will give me the multiple and
various results from a column in a spreadsheet.
Example spreadsheet:

col a col b
Part Tool
12345 12345
23456 23456
34567 34567
45678 34567
56789 56789
67890 56789
78901 56789

if I was to search for all parts made from tool 12345 the result should be
only part 12345, but if I searched for parts made from tool 56789, the
results I'm looking to see are 56789, 67890, and 78901. I was able using
index and match funtions to get a single answer but I would like to be able
to display all associated results on the single worksheet. Maybe it's some
kind of combination of if statements and index and match functions or find,
I'm not sure.

My spreadsheet has approximately 1000 part numbers made from several hundred
different tools.

Thanks in advance for the assistance.
 
K

Ken Hudson

Hi Larry,
The simplest answer would be to highlight column B and go to Data > Filter >
AutoFilter. You could then select your tool from the drop down box. Would
that work?
Regards,
 
D

Domenic

Assumptions:

A2:A8 contains the part

B2:B8 contains the tool

D2 contains the criterion or tool of interest, such as 56789

Formula:

E2, copied down:

=IF(ROWS(E$2:E2)<=COUNTIF($B$2:$B$8,$D$2),INDEX(A$2:A$8,SMALL(IF($B$2:$B$
8=$D$2,ROW($B$2:$B$8)-ROW($B$2)+1),ROWS(E$2:E2))),"")

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
L

Larry Banach

This response worked very easy and taught me some new things about excel.
Thanks
 
F

Frank

Hi Domenic, Theres something wrong with the formula (logical test fault by
index) are you able to help ?

Re,
Frank

"Domenic" skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top