Hi all
I'm trying to come up with a formula or VBA code that will allow me to generate a unique new batch code once the 'Product' (in column A) has been selected and today's date has automatically populated (column B).
I already have the formula for populate today's date once a product is selected, however I need a formula that will generate a unique new 6 digit batch code in column D based on the date: MMYY followed by a sequential 2 digit next available number (i.e. 01, 02 etc.)
Example: the 1st batch made on April 1st 2022 would be 042201, next batch would be 042202, and the last 2 digits would revert back to 01 when the month changes.
Once the batch code is generated, it cannot change in that row when I then subsequent new row or delete rows.
Thanks in advance guys
I'm trying to come up with a formula or VBA code that will allow me to generate a unique new batch code once the 'Product' (in column A) has been selected and today's date has automatically populated (column B).
I already have the formula for populate today's date once a product is selected, however I need a formula that will generate a unique new 6 digit batch code in column D based on the date: MMYY followed by a sequential 2 digit next available number (i.e. 01, 02 etc.)
Example: the 1st batch made on April 1st 2022 would be 042201, next batch would be 042202, and the last 2 digits would revert back to 01 when the month changes.
Once the batch code is generated, it cannot change in that row when I then subsequent new row or delete rows.
Thanks in advance guys