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 / March 2008

Tip: Looking for answers? Try searching our database.

Replace a comma with a period in a cell containing a lastname, first     name, middle i

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike C - 15 Mar 2008 16:30 GMT
Hello - I am trying to clean some data and need to change all of my
names from

McLaughlin, Victor, (i.e, comma) W

to

McLaughlin, Victor.(i.e., period) W

Is there an extract and replace formula  or method of som sort (in
excel or access) that will allow me to pull the first comma from the
right and replace it with a period.

Thanks for any suggestions!
Gary''s Student - 15 Mar 2008 17:54 GMT
Select the cells you want to change and run this tiny macro:

Sub comma_tose()
For Each r In Selection
   v = StrReverse(r.Value)
   r.Value = StrReverse(Replace(v, ",", ".", 1, 1))
Next
End Sub

For example:
a,b,c,d
will be changed to:
a,b,c.d
Signature

Gary''s Student - gsnu2007f

> Hello - I am trying to clean some data and need to change all of my
> names from
[quoted text clipped - 10 lines]
>
> Thanks for any suggestions!
Mike C - 16 Mar 2008 17:07 GMT
On Mar 15, 11:54 am, Gary''s Student
<GarysStud...@discussions.microsoft.com> wrote:
> Select the cells you want to change and run this tiny macro:
>
[quoted text clipped - 28 lines]
>
> - Show quoted text -

Thanks Gary

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.