Creating Custom Part Numbers with a Macro

tm21tm

New Member
Joined
Aug 22, 2018
Messages
1
Hi,

I am looking for a way to create custom part numbers. I have a lot of custom products and the part numbers need to be created when my customer requests pricing. The way I would like to structure the part number is using a fixed abbreviations (CP for custom part) followed by the Julian date (Current formula is =TEXT(TODAY() ,"yy")&TEXT((TODAY() -DATEVALUE("1/1/"&TEXT(TODAY(),"yy"))+1),"000") ), finally I would like to add a two digit suffix that is created in chronological order (-01 followed by -02 ). Right now I am using concatenate to create the list but sometimes people are not marking a part number as being used and as a result I am getting duplicate part numbers which is causing a lot of confusion when an order is finally placed. What I would ideally like to have is a macro where my sales staff can click on a button and the next available number for the day will be selected. This way I can avoid any duplication of parts numbers.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,064
Messages
6,122,937
Members
449,094
Latest member
teemeren

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