Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to get the value from string?

There is text Apple Computers & Components (17704) in Cell A1, and I would
like to separate Text Apple Computers & Components in Cell B1, and to
separate number 17704 in Cell C1. The size of text and number can be any
length, does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to get the value from string?

Hi,

If your numbers are always in parenthesis then this should work

=MID(A1,FIND("(",A1)+1,FIND(")",A1)-FIND("(",A1)-1)

Mike

"Eric" wrote:

There is text Apple Computers & Components (17704) in Cell A1, and I would
like to separate Text Apple Computers & Components in Cell B1, and to
separate number 17704 in Cell C1. The size of text and number can be any
length, does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default How to get the value from string?

If you are looking to separate the text from the numeric, you can do it with
a set of formulas: the assumption here is that the data is true to your
example and the numeric is always embraced with "( )"
=MID(A1,1,FIND("(",A1,1)-2) will extract the Text from the string into B1
AND
=MID(A1,(FIND("(",A1)+1),(FIND(")",A1,1))-(FIND("(",A1)+1)) will extract the
numeric string into C1

Or you can just use the Data/Text to Columns built in function and key in on
a specific character to delimit the strings, if your example is true to the
data then you can use the "(" as the delimiter... this will require you to
replace the closing ")" with global replace
--

Joe Mac


"Eric" wrote:

There is text Apple Computers & Components (17704) in Cell A1, and I would
like to separate Text Apple Computers & Components in Cell B1, and to
separate number 17704 in Cell C1. The size of text and number can be any
length, does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

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
Change 3 letter text string to a number string Pete Excel Discussion (Misc queries) 3 December 31st 07 07:47 PM
counting the number of instances of a string within another string Keith R Excel Worksheet Functions 3 March 5th 07 06:54 PM
How do I replace last numeric string from a alphanumeric string? Christy Excel Discussion (Misc queries) 3 August 11th 06 12:17 AM
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 03:47 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM


All times are GMT +1. The time now is 06:26 PM.

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"