Hi,
If you have typed in abc123 in cell A1, then enter the following array
formula (confirmed by Ctrl+Shift+Enter) in cell B1:
=1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$18),1)),0),COUNT(1*MID(A1,ROW($1:$18),1))+IF(ISNUMBER(MATCH(".",MID(A1,ROW($1:$18),1),0)),1,0))
Regards,
Ashish Mathur
Excel MVP
www.ashishmathur.com
"ACCAguy" <(E-Mail Removed)> wrote in message
news:2BB03CFE-57A4-4FA9-8716-(E-Mail Removed)...
> Can anyone help with a formula to separate a field containing numbers and
> letters into numbers per below? I only know how to use for eg =left(X,x)
> but
> that isn't helpful as different fields have different number of numeric
> charcters.
>
>
> 123ABC - 123
> 1234DEF - 1234
> 12GH - 12
> --
> ACCAguy
>
> --
> ACCAguy