Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Is there a way to short this substitute formula?

I want to remove all periods, hyphens and comma's. The below works but is
there a better solution?

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(K35,".","")," ",""),"-","")


--
Wag more, bark less
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Is there a way to short this substitute formula?

is there a better solution?

From a formula, not really. The old_text argument can't be an array. That's
why you have to nest a new level for every different old_text argument.


--
Biff
Microsoft Excel MVP


"Brad" wrote in message
...
I want to remove all periods, hyphens and comma's. The below works but is
there a better solution?

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(K35,".","")," ",""),"-","")


--
Wag more, bark less



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Is there a way to short this substitute formula?

Thanks.
--
Wag more, bark less


"T. Valko" wrote:

is there a better solution?


From a formula, not really. The old_text argument can't be an array. That's
why you have to nest a new level for every different old_text argument.


--
Biff
Microsoft Excel MVP


"Brad" wrote in message
...
I want to remove all periods, hyphens and comma's. The below works but is
there a better solution?

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(K35,".","")," ",""),"-","")


--
Wag more, bark less




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Is there a way to short this substitute formula?

You're welcome!

--
Biff
Microsoft Excel MVP


"Brad" wrote in message
...
Thanks.
--
Wag more, bark less


"T. Valko" wrote:

is there a better solution?


From a formula, not really. The old_text argument can't be an array.
That's
why you have to nest a new level for every different old_text argument.


--
Biff
Microsoft Excel MVP


"Brad" wrote in message
...
I want to remove all periods, hyphens and comma's. The below works but
is
there a better solution?

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(K35,".","")," ",""),"-","")


--
Wag more, bark less






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
Can I substitute a conditional parameter in every formula on page Paulyfudd Excel Worksheet Functions 2 December 20th 07 10:05 PM
how do I repeatedly substitute a value in a formula rob_t Excel Worksheet Functions 4 December 18th 07 03:46 AM
SUBSTITUTE formula -- variable spacing between parameters?? The Moose Excel Worksheet Functions 6 December 2nd 06 07:00 PM
Nesting the SUBSTITUTE formula Marco Margaritelli Excel Worksheet Functions 4 February 25th 06 02:50 PM
Substitute Formula AmyD Excel Worksheet Functions 2 January 5th 06 01:36 PM


All times are GMT +1. The time now is 05:44 PM.

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

About Us

"It's about Microsoft Excel"