Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Removing spaces in text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Granger - 12 Apr 2007 17:00 GMT
I need to create an 8 letter Account Name from company names, and I need to
remove any spaces in the company name, such that Smith And Wesson Ltd gives
SMITHAND.

Any suggestions?

Jeff
Peo Sjoblom - 12 Apr 2007 17:08 GMT
One way, with the name in A1

=LEFT(SUBSTITUTE(A1," ",""),8)

Signature

Regards,

Peo Sjoblom

>I need to create an 8 letter Account Name from company names, and I need to
>remove any spaces in the company name, such that Smith And Wesson Ltd gives
[quoted text clipped - 3 lines]
>
> Jeff
Niek Otten - 12 Apr 2007 17:12 GMT
Hi Jeff,

=UPPER(LEFT(SUBSTITUTE(A1," ",""),8))

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

|I need to create an 8 letter Account Name from company names, and I need to
| remove any spaces in the company name, such that Smith And Wesson Ltd gives
[quoted text clipped - 3 lines]
|
| Jeff
Jeff Granger - 12 Apr 2007 17:28 GMT
Thanks, both.

Much appreciated

Jeff
Harlan Grove - 12 Apr 2007 20:11 GMT
"Jeff Granger" <jeff.gran...@btclick.com> wrote...
>I need to create an 8 letter Account Name from company names, and I
>need to remove any spaces in the company name, such that Smith And
>Wesson Ltd gives SMITHAND.

You'd be far better off assigning arbitrary distinct 8-digit numbers
as account IDs rather than using the first 8 nonspace characters. How
would you distinguish between Smith and Wesson and Smith and Hawken?

Trying to condense a name field into an ID field is a classic database
mistake. You've been warned.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.