ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   double use of Substitution Function (https://www.excelbanter.com/excel-discussion-misc-queries/261123-double-use-substitution-function.html)

Tonso

double use of Substitution Function
 
to eliminate spaces from a data validation phrase, I can enter "
=Indirect(substitute(M12," ","")" and find the named range i need
create a List.
But, suppose I need to substitute for 2 characters...space, and comma
(,). How to I write the function to do
that?

Thanks,

Tonso

Reeza

double use of Substitution Function
 
On Apr 9, 10:37*am, Tonso wrote:
to eliminate spaces from a data validation phrase, I can enter "
=Indirect(substitute(M12," ","")" and find the named range i need
create a List.
But, suppose I need to substitute for 2 characters...space, and comma
(,). How to I write the function to do
that?

Thanks,

Tonso


Nest your functions.

A1 = hello this, is my answer
A2= =SUBSTITUTE(SUBSTITUTE(A1, " ", ""), ",", "")

HTH,
Reeza

Tonso

double use of Substitution Function
 
On Apr 9, 1:43*pm, Reeza wrote:
On Apr 9, 10:37*am, Tonso wrote:

to eliminate spaces from a data validation phrase, I can enter "
=Indirect(substitute(M12," ","")" and find the named range i need
create a List.
But, suppose I need to substitute for 2 characters...space, and comma
(,). How to I write the function to do
that?


Thanks,


Tonso


Nest your functions.

A1 = hello this, is my answer
A2= =SUBSTITUTE(SUBSTITUTE(A1, " ", ""), ",", "")

HTH,
Reeza


Reeza,

Thank you so much for your help!

Tonso


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com