|
-
Aug 24th, 2008, 01:28 PM
#1
Thread Starter
New Member
[RESOLVED] Alphabatize a string using VBA - For excel function
Hi!
The program I am using is excel. What I am looking to do is alphabetize a string within a cell. Note, I do not wish to alphabetize a column of words.
Here is an example. Let's say cell A1 contains a string like so:
"The Law Firm of Cohen & Jaffe"
I would like to alphabetize this whole string, within the cell so that it should read:
"Cohen Firm Jaffe Law of The"
Any garbage characters I would not worry about, I can always get rid of them using find and replace. The important thing, is to alphabetize the string.
The purpose of this task, is because I need to match data from 2 different databases, but some fields on the other database, although similar, are off just by a little (such as, reverse ordering). That is why I cannot use a normal sort function in excel to match the two datasets. Thus, the reason why I need to alphabetize a string, within a cell.
Thanks for your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|