Material reporting - interchangeability - product line versus product depth

Ronan_1

New Member
Joined
Feb 16, 2017
Messages
10
Dear all,






I am trying to generate a material report for different product lines. Unfortunately, when creating the references in our system (different suppliers giving the same product specification on a different part number), the links between specific products was not made in a simple way and now I am struggling building the report as the data needs to be cleaned.


Here is my issue:


We have different product lines (example data): screws, nuts and bolts. Each of these product lines have different models with the same product specification all referenced with a specific part number (due to the different supplier).


My aim is to create a primary key for all parts that are so called interchangeable (same form, fit and function).


here under, is the extract of data I get (sample, real data is more than 20,000 lines)


As you will see, some parts have the same description but are not interchangeable.


I was trying to generate a model following the principle if A = B and B = C then A = C but i did not manage to reach my goal yet.






Would you be able to help me?






Thank you for your support!






Ronan






data extracted
[TABLE="width: 320"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]PN1[/TD]
[TD]description1[/TD]
[TD]PN2[/TD]
[TD="colspan: 2"]description2[/TD]
[/TR]
[TR]
[TD]UE37[/TD]
[TD]screw[/TD]
[TD]DY42[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]MT75[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YN66[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]PO87[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]UV75[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DY42[/TD]
[TD]screw[/TD]
[TD]UE37[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BP13[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]PW58[/TD]
[TD]screw[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YN66[/TD]
[TD]screw[/TD]
[TD]YU44[/T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TD][/TD]
[TD]JL63[/TD]
[TD]bolt[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TH20[/TD]
[TD]bolt[/TD]
[TD]PR55[/TD]
[TD]bolt[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]PN10[/TD]
[TD]bolt[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]ZT51[/TD]
[TD]bolt[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YE57[/TD]
[TD]bolt[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BY10[/TD]
[TD]bolt[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]JL63[/TD]
[TD]bolt[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]





Data expected after cleaning
[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]PN1[/TD]
[TD="width: 64"]description1[/TD]
[TD="width: 64"]PN2[/TD]
[TD="width: 64"]description2[/TD]
[TD="width: 64"]Unique product line ID[/TD]
[/TR]
[TR]
[TD]UE37[/TD]
[TD]screw[/TD]
[TD]DY42[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]MT75[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YN66[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]PO87[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]UV75[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD]DY42[/TD]
[TD]screw[/TD]
[TD]UE37[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BP13[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]PW58[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD]YN66[/TD]
[TD]screw[/TD]
[TD]YU44[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]PO87[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]UV75[/TD]
[TD]screw[/TD]
[TD]S001[/TD]
[/TR]
[TR]
[TD]AX32[/TD]
[TD]screw[/TD]
[TD]ZA55[/TD]
[TD]screw[/TD]
[TD]S002[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]XD40[/TD]
[TD]screw[/TD]
[TD]S002[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]AA23[/TD]
[TD]screw[/TD]
[TD]S002[/TD]
[/TR]
[TR]
[TD]KM91[/TD]
[TD]nut[/TD]
[TD]RM13[/TD]
[TD]nut[/TD]
[TD]N001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]GJ29[/TD]
[TD]nut[/TD]
[TD]N001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BK96[/TD]
[TD]nut[/TD]
[TD]N001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]CZ89[/TD]
[TD]nut[/TD]
[TD]N001[/TD]
[/TR]
[TR]
[TD]CQ81[/TD]
[TD]nut[/TD]
[TD]VH75[/TD]
[TD]nut[/TD]
[TD]N001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]TT67[/TD]
[TD]nut[/TD]
[TD]N001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]KM91[/TD]
[TD]nut[/TD]
[TD]N001[/TD]
[/TR]
[TR]
[TD]EO41[/TD]
[TD]nut[/TD]
[TD]OE23[/TD]
[TD]nut[/TD]
[TD]N002[/TD]
[/TR]
[TR]
[TD]KI49[/TD]
[TD]bolt[/TD]
[TD]PN10[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]HW91[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]JL63[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD]TH20[/TD]
[TD]bolt[/TD]
[TD]PR55[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]PN10[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]ZT51[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]YE57[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]BY10[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]JL63[/TD]
[TD]bolt[/TD]
[TD]B001[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Everyone?

Would you have an idea how to solve this request?
I would really appreciate as I am completely blocked...
Thank you for your help!

Ronan
 
Upvote 0
Hi Bhos123,

thank you for your question.
S001 and S002 are two different product lines. They cannot be mixed at all as they have completely different specifications and attributes.
AX32 cannot be replaced by any of the PN shown in the S001 product line but it has alternates in the S002 product line, therefore it is belonging to S002.

Ronan
 
Upvote 0
Now you have classified products into S001, S002 , N001 , B001..etc. what exactly you want to do next?
 
Upvote 0
The thing is that I do not have this classification. I would like to generate it from the the input dataset (data extracted). S001, S002, ... shall be the new classification. Until now, I just have columns PN1, Descr. 1, PN2, Descr. 2.

Ronan
 
Upvote 0
I do not manage to get a way to automatically go through the PN1 - PN2 lists and generate this classification automatically.

The thing is that I do not have this classification. I would like to generate it from the the input dataset (data extracted). S001, S002, ... shall be the new classification. Until now, I just have columns PN1, Descr. 1, PN2, Descr. 2.

Ronan
 
Upvote 0
You can generate the classification using the algorithm that you want to use to classify. We first need to mention it very clearly. Then we can do the coding to generate them.
 
Last edited:
Upvote 0
Thank you for your answer. Is it possible to have a unique primary key that is automatically generated?
 
Upvote 0
Is your PN1 your primary key?? or PN2?. If you want to extract unique values from a column. First copy the column and paste it in some other column, then select it and select 'Remove duplicates' from 'Data>>Data Tolls'. you will get the unique values.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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