Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change 3 letter text string to a number string | Excel Discussion (Misc queries) | |||
counting the number of instances of a string within another string | Excel Worksheet Functions | |||
How do I replace last numeric string from a alphanumeric string? | Excel Discussion (Misc queries) | |||
Splitting a text string into string and number | Excel Discussion (Misc queries) | |||
to search for a string and affect data if it finds the string? | Excel Worksheet Functions |