Forum Discussion
MT3
Mar 26, 2026Copper Contributor
Filling a column with succeeding lists
Hi, I need a list of files, with numbers starting from 001 for each box. Adding the number for one box is easy but I have thousands of them. A box number is like "0001AA0001". The first number and ...
PeterBartholomew1
Mar 29, 2026Silver Contributor
= FILE.NUMBER(boxNumber)
where
FILE.NUMBER = LAMBDA(box,
LET(
change?, N(DROP(VSTACK("", box), -1) <> box),
fileNum, SCAN(0, change?, LAMBDA(num, ch?, IF(ch?, 1, num+1))),
box & "/" & TEXT(fileNum, "000")
)
);If you use 365 then the Lambda function FILE.NUMBER would product the required list from the box numbers.