Thanks for the feedback.
For me the formula in post #6 and post #12 gives the same result.
Attachment 370909
Attachment 370910
Comparison of the two formulas:
While $1 increases to $130 in the part ROW($1:$130), the formula in post #6 checks if the string from the character positions 1-11, then 2-12, then 3-14 etc. up to 130-141 is a 11-digit long number or not, supposing that the whole length of the strings processed will not be longer than 130 characters.
If two new cells are inserted then the formula in B2 (and similarly B5 and B6) changes to:
MID(SUBSTITUTE(A2;" ";"");MATCH(TRUE;ISNUMBER(--MID(SUBSTITUTE(A2;" ";"");ROW($1:$132);11));0);11)+0
This means that the former checking will be done up to the 132nd character position in spite of the fact that the actual string-lengths are around 50 character. As a length of 130 character seems enough to cover the possible length of the strings to be processed, going over 130 is needless.
The second formula processes exactly as many characters as needed, that is, the length of the string, not more. Moreover it does not show the above-mentioned „shifting” effect.
Bookmarks