From: dks345 on
I have cells that contain data such as:

General Motors 22779
United States of America 1449
Carlsbad 712
Under 21 Children 12

I would like to parse the numbers at the end of each cell. Each number can
be different lengths and the text preceding the number can be different
lengths, too. Any ideas?
From: T. Valko on
Try this:

=--TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),100))


--
Biff
Microsoft Excel MVP


"dks345" <dks345(a)discussions.microsoft.com> wrote in message
news:B49FABE0-8B51-4BD2-A55B-87BA21225B1A(a)microsoft.com...
>I have cells that contain data such as:
>
> General Motors 22779
> United States of America 1449
> Carlsbad 712
> Under 21 Children 12
>
> I would like to parse the numbers at the end of each cell. Each number
> can
> be different lengths and the text preceding the number can be different
> lengths, too. Any ideas?


From: מיכאל (מיקי) אבידן on
With the first string in cell A1 tyep the following formula into cell B1 and
copy down:
= - LOOKUP(1, -
MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW($1:$256)))
Micky


"dks345" wrote:

> I have cells that contain data such as:
>
> General Motors 22779
> United States of America 1449
> Carlsbad 712
> Under 21 Children 12
>
> I would like to parse the numbers at the end of each cell. Each number can
> be different lengths and the text preceding the number can be different
> lengths, too. Any ideas?