Here, try this:

Formula: copy to clipboard
=SUBSTITUTE(C10,"BB" &15000+ROW(A1),"BB" &15000+ROW(A1)&REPT(" ",2))