Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Text Parsing with uneven lengths

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
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?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Text Parsing with uneven lengths

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&"01234567 89")),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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Last piece of text in a string (multiple lengths) Bob Freeman Excel Discussion (Misc queries) 3 November 27th 08 06:10 PM
Economical grouping of lengths out of much longer lengths Richard (a Builder not a Mathematician) Excel Worksheet Functions 1 January 19th 08 10:28 PM
Text spacing uneven when copying charts from EXCEL 2007 to WORD 20 MikeM Charts and Charting in Excel 4 December 3rd 07 05:35 PM
truncating text strings of different lengths Funkey Excel Discussion (Misc queries) 7 March 29th 06 07:22 PM
Parse data with uneven lengths and different delimiters [email protected] Excel Worksheet Functions 3 January 5th 06 11:57 PM


All times are GMT +1. The time now is 06:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"