#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Substitute function

I have the following text in a cell "Display Ad - 1/3 page" - I want
to substitute all spaces, "/" and "-" characters with "" so my result
is "DisplayAd13page". Can I do this in one statement using
Substitute? Right now I have one cell that substitutes " " with "",
another that substitutes "/" with "" and a third that substitutes "-"
with "", so I now have 3 separate cells doing what I'd like to do in 1
statement. Is that possible?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Substitute function

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),"-",""),"/","")
--
Gary''s Student
gsnu200703


" wrote:

I have the following text in a cell "Display Ad - 1/3 page" - I want
to substitute all spaces, "/" and "-" characters with "" so my result
is "DisplayAd13page". Can I do this in one statement using
Substitute? Right now I have one cell that substitutes " " with "",
another that substitutes "/" with "" and a third that substitutes "-"
with "", so I now have 3 separate cells doing what I'd like to do in 1
statement. Is that possible?


Reply
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
Fill Function to next Column shital shah Excel Worksheet Functions 0 August 16th 06 02:53 PM
VBA Monty Excel Worksheet Functions 2 January 30th 06 01:37 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 11:54 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"