Hi @galactus3000,
I agree with others that there is probably a more efficient way of solving whatever problem you have than using a self-referencing formula to extract the numeric part of the column name. That said, I thought it was an interesting challenge! There isn't (so far as I know) a way to self-reference the originating column via jsl (the way we can use Row(), for example), but we can take advantage of the fact that jmp will automatically update references to a column in scripts and formulas when you change a column name. This means we can reference the column itself in an absolute way, and when you change the name and rerun formulas (important) jmp will update all the rows.
Specifically, here's the formula I would use:
Screen Shot 2019-12-06 at 12.17.50 PM.png
Num( Word( 1, :Name( "16 dogs" ) << get name ) )
and here is what it looks like upon a change:
update.gif
I hope this helps!
@jules