Pull data from spreadsheet

Josefiend

New Member
Joined
Jan 20, 2015
Messages
2
Hello all, new here bear with me:</SPAN></SPAN>

I have a main inventory spreadsheet with 2 columns: A is for Part_Number, B is for location. This sheet hase 1000s of lines, also, there will be duplicates in each column as there are certain parts in multiple locations, and certain locations with multiple parts.</SPAN></SPAN>

I have a list (on another sheet) with 100 or so distinct part numbers I need to pull from the main spreadsheet. So basically, I need a formula(?), that will look at each part number in the small list and pull EVERY INSTANCE of that part number along with its corresponding location from the main spreadsheet.</SPAN></SPAN>

I have made multiple attempts after much researching online, but I can’t seem to make this happen. It seems like it should be fairly simple.</SPAN></SPAN>

Thank you for any help!</SPAN></SPAN>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Maybe something like this.
If you are careful how you set up your cell references you can just drag formula down and across (Cell E2 in the example below).

NOTE: This is an array formula and must be entered with
Excel Workbook
ABCDEFGH
1Part#LocationPart#LocLocLocLoc
2Part1Loc1Part1Loc1Loc3Loc7
3Part2Loc2Part2Loc2Loc1
4Part1Loc3Part4Loc4
5Part4Loc4Part6Loc6
6Part2Loc1
7Part6Loc6
8Part1Loc7
CTRL-SHIFT-ENTER.
 
Upvote 0
Well this totally worked!! Thank you very much for your help.</SPAN></SPAN>

The only problem now is that the data is hard to look at and sort. I’m wondering if I can get all the data back into two columns. That way, I could do subtotals on either part or location. </SPAN></SPAN>

I’m not sure if all this is the best way to do what I’m trying to do, I’m just thinking subtotals because use them a lot. Or Maybe:</SPAN></SPAN>

It’s time for a pivot table! (shudder)</SPAN></SPAN>

Or a database! (yikes)</SPAN></SPAN>

I’m learning slowly but surely so any input on this is appreciated. Thank you again for your help already!</SPAN></SPAN>
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,453
Members
449,161
Latest member
NHOJ

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