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 2008

Tip: Looking for answers? Try searching our database.

Replace Comma with Hyphen

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
brettmanning24@gmail.com - 18 Apr 2008 09:53 GMT
Hello,

I would like to replace commas with a hyphen/dash.  For example cell
A1 contains "ABC,DEF,GHI", I would like to replace the "," with "-"
i.e. "ABC,DEF,GHI".

I attempted to use REPLACE(A1,FIND(CHAR(","),A1),1,",") but this only
replaces the first ",".

I need to find out how many "," are in the text and replace them all.
I know I could use find and replace but I need to use a formula.

Thanks in advance,

Brett
Rick Rothstein (MVP - VB) - 18 Apr 2008 10:29 GMT
Answered in one of your other postings...

Rick

> Hello,
>
[quoted text clipped - 11 lines]
>
> Brett
Gary''s Student - 18 Apr 2008 10:34 GMT
=SUBSTITUTE(A1,",","-")
Signature

Gary''s Student - gsnu2007h

 
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.