Number Sequence based on date in a different cell

netzy19

New Member
Joined
Mar 22, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Wanting to see if I can automate a number sequence in one column based on the data entered in another column.

Currently we manually enter the dates, and Bill of Lading numbers in this form. Our BOL numbers are always the date in straight number form with a dash and number afterwards to differentiate.

Wanted to see if there was a way that when we entered the date in column A, that it could automatically populate the next BOL number for that date in Column D on the same line.
Once the date changed, it would have to start over at -01 for the next date.

For example

1711137490899.png


Any help would be appreciated, thank you!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Welcome to the Board!

Put this formula in cell D2 and copy down:
Excel Formula:
=IF(A2<>"",TEXT(A2,"mmddyy") & "-" & TEXT(COUNTIF(A$2:A2,A2),"00"),"")
 
Upvote 0
Solution
Is this for Excel or Google Sheets?
 
Upvote 0
Welcome to the Board!

Put this formula in cell D2 and copy down:
Excel Formula:
=IF(A2<>"",TEXT(A2,"mmddyy") & "-" & TEXT(COUNTIF(A$2:A2,A2),"00"),"")
This worked perfectly!!!! Thank you!
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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