Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Extract data from a cell after a constant value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wolfman - 19 Aug 2007 18:29 GMT
Howdy All,

I have a spreadsheet that contains 1 column of data, if the cells of the
column are the city names and populations of towns in the following format:

Appleton, Wisconsin (WI)  (pop. 70,087)

The 'pop.' is always present.
I want to extract just the population number (ie: 70,087) from these cells
into another cell.

What is the simplest way to accomplish this?

Thank you,
Brian
Ron Rosenfeld - 19 Aug 2007 18:51 GMT
>Howdy All,
>
[quoted text clipped - 11 lines]
>Thank you,
>Brian

Extracts the value as text:

=SUBSTITUTE(MID(A1,FIND("(pop.",A1)+5,255),")","")

To turn it into a "number":

=--SUBSTITUTE(MID(A1,FIND("(pop.",A1)+5,255),")","")

--ron
Wolfman - 19 Aug 2007 19:44 GMT
Thanks Ron!

>>Howdy All,
>>
[quoted text clipped - 22 lines]
>
> --ron

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.