Hello folks,
I sure could use some help.
I have a working PRF Document numbering system for where Parent row and Children are a family of numbers. (see example below) (*many thanks to the folks who posted this solution!)
PROBLEM: When I move rows of completed PRF's from above rows off the sheet (because it gets quite long for the user), the formula to determine the Suffix renumbers my PRF's and then I no longer have a continuum of unique numbers being used. For example:
(If I delete all rows for the first 3 PRF's PRF......-2021-01, ...2021-02, ....2021-03 then all PRF's renumber. What was once PRF...47 becomes PRF...44
PRF...48 becomes PRF...45
PRF...49 becomes PRF...46
Sighs. What I need is to retain the last number used and never use it again so that document numbers remain uniquely generated for all time. Renumbering is a big problem. Can anyone help with a solution please? Here is what I have. Key formulas posted below.
Prefix =PARENT() + IF([Parent ID]@row = "TOP", "", PARENT(Suffix@row) + ".")
Suffix =MATCH(UniqueID@row, COLLECT(UniqueID:UniqueID, [Parent ID]:[Parent ID], [Parent ID]@row), 0)
Parent ID=IF(COUNT(ANCESTORS()) = 0, "TOP", "R" + PARENT(AutoNum@row))
UniqueID=IFERROR([Vendor / Supplier Name]@row + AutoNum@row, "")
Significant Autonum Family =IF(MAX([Family ID]:[Family ID]) = [Family ID]@row, 1, 0) (marks last row so it can not be moved)