Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm looking to create a column of sentences where the words/phrases
which appear in Column A have been removed from the sentences which appear in Column B so if... Cell A1 = "take sg over" Cell B1 = "They plan on taking the company over." ....then I want to get... Cell C1 = "They are planning to ...... the company ......" Do you think it is possible to do this using either a MACRO or a FUNCTION?. I'm currently using the following function for Cell C1... =REPLACE(B1,SEARCH(LEFT(A1,4),B1), SEARCH(" ",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,"."," "),"?"," "), "!"," "),SEARCH(LEFT(A1,4),B1)+LEN(A1))-SEARCH(LEFT(A1,4),B1),".....") ....but it gives... Cell C1 = "They plan on ..... over." ....which is obviously inadequate. Any ideas? Your help would be greatly appreciated. Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Split several sentences in one cell | Excel Discussion (Misc queries) | |||
Split sentences into words | Excel Discussion (Misc queries) | |||
removing a space between words in a cell | Excel Worksheet Functions | |||
I need to put 4-5 sentences into one cell. | Excel Worksheet Functions | |||
Removing rows featuring certain words | Excel Programming |