Hi folks,
Lets suppose I have the cell A1 with 100 words or more separated by comma, but the words can be composed word or double words such as "jump up", "Old age","sunny day", or more "holding a face", but I want to find these composed words or double/triple+ words with space that are between commas, and delete them and just leave the single words. So, as example let's suppose my cell A1 was as:
[A1] word1, jump up, word3, word4, Old age, word6, Sunny day, holding a face,...word100
Want the result as
[A1] word1, word3, word4, word6, ...word100
Is there some way to create a formula on B1 to get the result above or is it possible to put them within double-quotes as shown below:
[A1] word1, "jump up", word3, word4, "Old age", word6, "Sunny day", "holding a face",...word100
Thanks in advance.
Last edited by lucato; 02-04-2012 at 03:57 PM.
Hi lucato.
Is the same question with this??...
http://www.excelforum.com/excel-gene...to-a-cell.html
Regards
Fotis.
I am proud that i am Greek.
Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?
Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Please,mark your thread [SOLVED] if you received your answer.
My Avadar picture, is from Athens Acropolis.
http://www.theacropolismuseum.gr
http://www.visitgreece.gr/
No, it is different from that post subject, but has the same question in the thread to member that was helping me with the other issue. So, how it isn't the subject of that title was created a new one.
You can do it directly on the cell by applying Find & Replace. First put a <comma><space> before the first word, and a <comma><space> after the final word. Highlight cells A1 and A2 (so that this will not affect other cells), then CTRL-H, and then in the dialogue box:
Find what: <comma><space><asterisk><space><asterisk><comma><space>, i.e. ", * *, " without the quotes
Replace with: <comma><space>, i.e. ", " without the quotes
Click Replace all
this will remove all words containing one or more spaces within the text. You can then delete the <comma><space> before the first word and after the last word.
Hope this helps.
Pete
Hey Pete great trick as non-formula, thanks for your tip.
It is a pity, that the Replace with doesn't accept "*" as wildcard character.
Hi Pete, just one more question. Your trick doesn't work for the latest word on the righ. I mean, If I have on the cell:
[A1] word1, word2, word3, word4, double word
and if I...
Find what: <comma><space><asterisk><space><asterisk><comma>, i.e. ", * *" without the quotes
Replace with: <nothing>, i.e. "" without the quotes
The result will be:
[A1] word1
Instead of [A1] word1, word2, word3, word4
Any idea how to trick the latest on the very right?
Thanks.
Btw, I edited the 1st post, instead of deleting, is there some way to create a formula on B1 or find/replace to put them within double-quotes as shown below:
[A1] word1, "jump up", word3, word4, "Old age", word6, "Sunny day", "holding a face",...word100
Thanks.
You should not edit a post that has been answered - it will make no sense to anyone reading it after you have changed it.
The answer to your question is - No. The asterisk (wildcard) can be used to search for any characters, but it can't be used to substitute the same characters back into the text.
Hope this helps.
Pete
I'm sorry but I don't agree that won't make sense once it was just one insertion of extra doubt. It won't reflect in the other replyes.
Regarding the "No" are you talking about the asterisk or NO that isn't possible to put them within double-quotes as shown below:
[A1] word1, "jump up", word3, word4, "Old age", word6, "Sunny day", "holding a face",...word100
Thanks and have a nice Sunday
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks