+ Reply to Thread
Results 1 to 3 of 3

searching a Part code, gives a list of piece numbers which provides it's w/h location

  1. #1
    Registered User
    Join Date
    04-26-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    2

    searching a Part code, gives a list of piece numbers which provides it's w/h location

    Hi All

    I'm a newbie to forums and also to formulas and macros in Excel, but i'm already hooked.
    Using Vlookup, I have been a been able to put in a part code of a product and find it's piece number and location, but the company i work for is dealing with rolls of fabrics, each cut of a part code has a different piece number and can have different locations in our warehouse.
    So my question is, can i search the the part code, which gives me a list of it's piece numbers, which then gives me the location of both the Part code and Piece number i desire?

    Part Code:
    SW2020-01

    Piece No:
    000001
    000002
    000003

    Location:
    01E02
    25K03
    06A04

    Thanks in advanced

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: searching a Part code, gives a list of piece numbers which provides it's w/h location

    Welcome to the forum

    Each VLOOKUP can only return one piece of information. Moreover, VLOOKUP is not great at searching in a one to many context (such as in your case where you have one Part Code with many piece numbers and one piece in many locations). If Excel had to store this data you will need to duplicate each part code multiple times to link it to each piece number, etc. The moment you do this, VLOOKUP bombs out as it is designed to search for unique values, find a match and return info about that item. With duplicates, it will find the first instance and never return data for the others.

    Of course you can attempt to overcome this by concatenating the Part Code and Piece No. but this complicates the process esp. since you have multiple locations for each Piece too...

    A better tool for the task might be a Pivot Table that groups data together. If you can set up a table with Part Code, Piece No., Location, and other columns, a pivot can consolidate all the data into a easy to read report and provide additional summary info with aggregate formulas and filtering. not sure if this is what you are after...but it's an option that can assist to find information quicker by groups.

    The ultimate solution for you would be a simple relational database that can cope with one-to-many relationships and provide queries and forms that can be used to locate and maintain data.
    Regards,
    Rudi

  3. #3
    Registered User
    Join Date
    04-26-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: searching a Part code, gives a list of piece numbers which provides it's w/h location

    Hi Rudi

    Thanks for the speedy reply I will give a pivoy table a go (never tried one before)

    Regards
    Sly

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Searching if a cell contains a specific piece of text in an IF/OR formula
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2013, 02:52 AM
  2. 2 part piece here. One part counter of up and down, fill in of blank cells.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 10:09 PM
  3. Replies: 9
    Last Post: 11-12-2010, 05:51 AM
  4. Part Code + part no combination for list box
    By suhas_shah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2006, 07:28 PM
  5. Copying a worksheet-part of a larger piece of code
    By SusieQ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2006, 11:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1