Sequence restarts when week number changes

JEH0714

New Member
Joined
Mar 10, 2017
Messages
8
Greetings, What I am trying to do is number forms based on week number and an increasing number based on how many forms have been created that week.
The form number will be as follows, Year, Week Number, Sequence number -
202226-01
202226-02
week number changes the sequence number starts over at 01
202227-01
I'm using helper cells to keep the week number, the "-" between the week number and the, Sequence number (AW5 is the Concatenation of the three. the Week number comes from he date entered in AL2

any help would be appreciated.

MASTER - PMM SHIPPER DOCUMENTATION-DOCUMENT NUMBER TEST.xlsx.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAY
1
2This row will not print or show on PDFDocument Date:7/23/2022
3
4Factory Certfied Shipper Documentation
5202229-02-02
6Customer:ESP CompanyWellname:Installed DateSales Order
7Doc No. 202229-02
8Well Type: Salesman
9
10
11Product Details
Master
Cell Formulas
RangeFormula
AW5AW5=CONCATENATE(TEXT(AL2,"yyyy") & TEXT(WEEKNUM(AL2,21),"00")-(AND(MONTH(AL2)=12,WEEKNUM(AL2,21)=1)),TEXT(CONCATENATE(AX5,AY5),"0,#"))
AL7AL7=AW5
Cells with Data Validation
CellAllowCriteria
E9:G9List=INDIRECT("tbl_well_type")
D8:K8List=INDIRECT("tbl_well_type")
 

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.

Forum statistics

Threads
1,215,084
Messages
6,123,024
Members
449,092
Latest member
ikke

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