Part Number Creator

shelwin

New Member
Joined
Jan 9, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi I am wanting to create part numbers with this table, the sub group and the extra info columns are drop down lists and random part number column creates random numbers. The formula i am using in column a (part number) is =LEFT(B2,3)&C2&D2&E2&F2 but i now need to add a column next to the sub group with descriptions of the sub group codes so it need to be dynamic depending on the option chosen so the right description matches the sub group code and another column to do the same next to the extra info code but I also do not want the formula to read these columns so it does not affect the part number. I then need the part number created in the part number column to copy to a column added next to supplier code so i can then generate a bar code using a bar code font? Any help would be appreciated thanks.

Part NumberMAIN GROUPsub groupextra info coderandom part numbersupplier code
AVVAME29418441AVVAME
294184​
41​
BEROME17926741BEROME
179267​
41​
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
OK. The following I think represents what you want:
Book1
ABCDEFGHI
1Part NumberMAIN GROUPsub groupextra info codecode descriptionrandom part numbersupplier codesupplier descriptionbarcode
2AVVAME29418443AVVAMEReally long ME29418443Joe Smith*AVVAME29418443*
3BEROME17926741BEROMEReally long ME17926741Fred Bloggs*BEROME17926741*
Sheet3
Cell Formulas
RangeFormula
H2:H3H2=VLOOKUP(G2,supp_codes,2,FALSE)
I2:I3I2="*"&A2&"*"
A2:A3A2=LEFT(B2,3)&C2&D2&F2&G2
E2:E3E2=VLOOKUP(D2,info_codes,2,FALSE)

The 2 tables referenced are:
Book1
LM
1info codes
2MEReally long ME
3FRAnother desc
Sheet3

and:
Book1
OP
1supp codes
241Fred Bloggs
343Joe Smith
Sheet3
 
Upvote 0
thank you for the quick reply John I will give it a try now
 
Upvote 0
OK. You may have a bit of trouble with the lookup for the supplier code - make sure all the data is in the same format otherwise there may be a problem (e.g. numeric 41 is not the same as text 41 so the VLOOKUP would fail)
 
Upvote 0

Forum statistics

Threads
1,216,180
Messages
6,129,342
Members
449,505
Latest member
Alan the procrastinator

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