Forum Discussion
Nibmus
Aug 06, 2022Copper Contributor
How to have a list of numbers that skip when it gets to certain values?
I want to make a list of numbers. The thing is, some slots have already been filled by other numbers using a formula. 10 4 3 ...
PeterBartholomew1
Aug 06, 2022Silver Contributor
A 365 solution.
= LET(
k, SEQUENCE(ROWS(Formula)),
missing, FILTER(k, ISERROR(XMATCH(k, Formula))),
pointer, SCAN(0, Formula, LAMBDA(a,f, IF(f, a, a+1))),
IF(Formula, Formula, INDEX(missing,pointer)))