Date code serial number in excel

dadolt

New Member
Joined
Feb 7, 2013
Messages
2
I need to convert a date into a serial number. The serial number must return the format DDDYYNN where DDD is the day of the year, YY is the year, and NN is the sequential build number. As an example, if 10 units are built on 2/6/2013, the serial numbers would be 0371301, 0371302 ...0371310. Cell A1 would contain the current date (2/6/13) in this example. Column B1 - B10 would be the sequential serial numbers generated by the formula.

Thanks in advance for guidance!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Maybe ...

=text(a1, a1 - date(year(a1), 1, 0), "000") & text(a1, "yy") & text(b1, "00")
 
Upvote 0
Maybe ...

=text(a1, a1 - date(year(a1), 1, 0), "000") & text(a1, "yy") & text(b1, "00")

Thanks, with your guidance the formula is as follows where B2 is the sequential unit in column B returns 0381301 for a date of 2/7/2013


=TEXT((TODAY()-DATEVALUE("1/1/"&TEXT(TODAY(),"yy"))+1),"000")&TEXT(TODAY(),"yy")&TEXT(B2,"00")

<tbody>
</tbody>
 
Upvote 0
Good job, glad you got it sorted.
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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