View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Text Parsing with uneven lengths

Try this:

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


--
Biff
Microsoft Excel MVP


"dks345" wrote in message
...
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?