Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A simple one hopefully, I am trying to FIND a text string which always
occurs between brackets and copy it into another column. Example, I want to copy the word "Apples" from cell A1 to cell B1 where A1 has the following Text : Peaches Cream (Apples) Bannana Cherries. Many thanks for any help |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try
=MID(A1,FIND("(",A1,1)+1,FIND(")",A1,1)-FIND("(",A1,1)-1) " wrote: A simple one hopefully, I am trying to FIND a text string which always occurs between brackets and copy it into another column. Example, I want to copy the word "Apples" from cell A1 to cell B1 where A1 has the following Text : Peaches Cream (Apples) Bannana Cherries. Many thanks for any help |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
With your string in A1, use this formula:
=IF(ISERROR(MID(A1,SEARCH("(",A1)+1,SEARCH(")",A1)- SEARCH("(",A1)-1)),"",MID(A1,SEARCH("(",A1)+1,SEARCH(")",A1)- SEARCH("(",A1)-1)) All one formula - be wary of spurious line-breaks on the newsgroups. If you do not have either an opening or closing bracket, or if your closing bracket occurs before the opening bracket, then you will get a blank cell. Hope this helps. Pete On Aug 22, 2:36 pm, wrote: A simple one hopefully, I am trying to FIND a text string which always occurs between brackets and copy it into another column. Example, I want to copy the word "Apples" from cell A1 to cell B1 where A1 has the following Text : Peaches Cream (Apples) Bannana Cherries. Many thanks for any help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif text is contained winthin a longer text string in a cell | Excel Worksheet Functions | |||
Splitting a text string into string and number | Excel Discussion (Misc queries) | |||
Copy a string text to cell if another cell not empty | Excel Discussion (Misc queries) | |||
want to remove all text characters equal to one character in length from text string | Excel Worksheet Functions | |||
want to remove all text characters equal to one character in length from text string | Excel Worksheet Functions |