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 the letters never change, so I have :
| 0001AA0001 |
| 0001AA0002 |
| 0001AA0003 |
| What I have | What I need |
| 0001AA0001 | 0001AA0001/001 |
| 0001AA0001 | 0001AA0001/002 |
| 0001AA0001 | 0001AA0001/003 |
| 0001AA0002 | 0001AA0002/001 |
| 0001AA0002 | 0001AA0002/002 |
| 0001AA0003 | 0001AA0003/001 |
| 0001AA0004 | 0001AA0004/001 |
| 0001AA0004 | 0001AA0004/002 |
| 0001AA0004 | 0001AA0004/003 |
Can you please tell me how can I add automatically the /001 and so on without having to do it for each box ? I can't manage to use a model for CTRL+E and I'm not accustomed to use the functions.
Thanks,
M.T.
3 Replies
- Harun24HRSilver Contributor
You may try the following formula-
=MAP(A2:A10,LAMBDA(x,x&"/"&TEXT(COUNTIFS(A2:x,x),"000"))) - PeterBartholomew1Silver 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.
- OliverScheurichGold Contributor
=A2&"/"&TEXT(COUNTIFS($A$2:A2,A2),"000")The screenshot shows the formula in german Excel.