Google Answers Logo
View Question
 
Q: Remove extra words and characters from string with Excel VBA ( No Answer,   0 Comments )
Question  
Subject: Remove extra words and characters from string with Excel VBA
Category: Computers > Programming
Asked by: operadoglover-ga
List Price: $20.00
Posted: 12 Mar 2006 23:08 PST
Expires: 13 Mar 2006 10:19 PST
Question ID: 706628
I have a column of text that looks like the following:
nnnnn $xxxx$, nnnnnnn $xxx$, nnn $xxxxxxx$, nnnn $xxxxx$
nnn $xxxx$, nnnnnn, nnnnn $xxxxxxxxxx$
nnnnnnn $xxxxxxxxx$, nnn $xxxx$, $xxxxx$

In other words, the "n" strings and the "$x$" strings can be of any
length and there can be any number of "n" and "$x$" pairs separated by
commas. Also, there is not always a one-to-one correspondence between
the two, i.e. I can have the "n" term without the "$x$" term and vice
versa.

I need a macro that will remove the characters within the dollar signs
(including the dollar signs) and write a new column containing the
remaining characters but excluding any extra commas when there is no "n"
term to go with the $x$ term.

Request for Question Clarification by pafalafa-ga on 13 Mar 2006 07:42 PST
Any chance you could upload your file to an online link, so that we
could have a look at it?

If you can, I might be able to clean up the file per your specs.

pafalafa-ga
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy