LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Replace Comma's with Dash

Hello,

Please could someone help me. In cell A1 of my spreadsheet I have
"ABC,DEF,GHI". I would like B1 to contain the same data as A1 but
with a dash instead of a comma i.e. ABC-DEF-GHI. The number of
comma's will never be the same so all comma's need to be replaced. I
need to use a formula otherwise I would have used find and replace.

Can anyone help.

=REPLACE(A1,FIND(",",A1,1),1,"-")

I used this but it only replaces the first comma, I need to find out
how many comma's there are in A1.

Thanks,

Brett
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace dash in a number sequence Willy Wonka Excel Worksheet Functions 1 February 14th 08 12:04 AM
Excel do not accept any comma's (,) making them unusable... Help! Gertjie Deysel 16404 Excel Worksheet Functions 2 December 10th 07 10:41 AM
Replace Error with a Dash Karen Excel Worksheet Functions 3 March 14th 06 05:33 PM
understanding dash dash in a excel formula ldebner Excel Worksheet Functions 2 October 31st 05 01:47 PM
Exporting to text, cells with comma's are placed in quotes. -Bad pallid Excel Discussion (Misc queries) 3 October 28th 05 04:41 PM


All times are GMT +1. The time now is 09:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"