Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Michelle wrote:
I have a block of wrapped text in cell D2. Buried within the text are two keywords: "NAME:" and "CONSTRAINED". I want to extract all of the text between these two keywords and paste it into cell L2. I feel I'm close with =MID(D2,SEARCH("NAME:",D2),30) but since I haven't told it where to stop, this isn't exactly what I need. I appreciate any help from the masses.. Thanks! Another way: =TRIM(MID(SUBSTITUTE(SUBSTITUTE(D2,"CONSTRAINED",R EPT(" ",999)),"NAME:", REPT(" ",999)),999,999)) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
extracting text between two keywords | Excel Worksheet Functions | |||
extracting text between two keywords | Excel Worksheet Functions | |||
Finding keywords in several text columns | Excel Discussion (Misc queries) | |||
How do I search for keywords in cells containing text? | Excel Worksheet Functions | |||
Keyword search, several keywords | Excel Discussion (Misc queries) |