+ Reply to Thread
Results 1 to 4 of 4

Data Relationship?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-20-2008
    Posts
    11

    Data Relationship?

    Hi Guys

    I would like to get a way to find out the relationships between the parts ordered

    I have attached a sample data set.

    Eventually I would like to get to a stage when I can type in a part number and it will bring up other part numbers that were ordered with that part number. Ideally the top ten rather than having a huge lists of hundreds of parts.

    I.e The top selling part number in the list is 11511607, I can easily make a formula to bring back all of the order numbers this was ordered on but I don’t want the order numbers, I want the other part numbers on the order in which this part was ordered.

    I am trying to get to which parts are commonly ordered together and thus should be stored close together in the warehouse to speed up the picking processes.

    Any help or guidance on how I may going about achieving this would be greatly appreciated.

    Thanks

    Simon
    Attached Files Attached Files
    Last edited by Q-D; 11-27-2009 at 10:14 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Data Relationship?

    Here is one approach:

    This will need to be a multi-step process involving two uses of Advanced Filter and then a Pivot Table.

    First Advanced Filter
    Source Range: Output Sheets columns A:B (Order Number & Part Number)
    Criteria: A Part Number

    The above will extract all of the order numbers associated with the part number, which, in turn, provides the criteria for second AF.

    Second AF
    Source Range: same as above
    Criteria: all order numbers extracted in first AF

    This will return all of the part numbers associated with the above work orders, which themselves are associated with the part number from the first AF.

    Pivot Table
    Create this based on the data extracted in the second AF. Set the Part Number as the Row Field pull the part number field into Values section of the PT layout using the Count option.

    The Forum is giving me errors during attempts to upload a sample file. Hopefully, the above explanation is sufficient for now.

    Edit: Had to ZIP the file to get it to upload. Didn't have time to automate the Advanced Filters with VBA as Stanley has done, but you still need to create a Pivot Table in order to obtain the counts of each part number
    Attached Files Attached Files
    Last edited by Palmetto; 11-26-2009 at 09:46 PM.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Data Relationship?

    Q-D,

    See the attached workbook "Data Filter AutoFilter - Q-D - SDG10.xls", with your raw data on worksheet "Output", and two additional worksheets "Orders", and "OtherPartNumbers".

    There is a command button on worksheet "Output", "Get Others".

    Click on the command button, and all the other "Order Numbers" (and data) that contain the same "Part Number" as the "Part Number" in cell G2, will be copied to worksheet "OtherPartNumbers", less the rows that may contain the "Part Number" in cell G2.

    We have gone from 6,999 rows of data in worksheet "Output", to 566 rows of data in worksheet "OtherPartNumbers".

    Detach/open the workbook and click on the command button on worksheet "Output", "Get Others".
    Attached Files Attached Files
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Registered User
    Join Date
    03-20-2008
    Posts
    11

    Re: Data Relationship?

    Fantastic!!

    Thankyou both for your help, much more than I expected I was hoping for a direction not the actual outcome.

    It does amaze me the skills some people have!

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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