Array formula help please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings,
I'm looking fo an array formula to substitue specified charasters with an
underscore. I've tried:
=SUBSTITUTE(MyRange,{" ","&","(",")"},{"_","_","_","_"}) Ctrl+Shift+Enter
This works for any instances of the first character (space) but ignores any
of the others.
Any advice will be appreciated
TIA
 
Hi David

Try using the non-array entered
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(myRange,"
","_"),"&","_"),"(","_"),")","_")

Regards

Roger Govier
 
Thanks Roger,
You formula works fine. This will form part of a 'mega' formula. I thought
of using an array formula to make the sheet more readable. Still wondering if
that is possible?
Thanks again
 
Hi David

I couldn't see the way to do it as an array, but you bet there's someone out
there who can.

If I end up with mega formulae, I "cheat" and use helper cells with parts of
the formula (in hidden columns if necessary) or put some of the formula in a
defined Name. Makes it much easier to maintain.

Regards

Roger Govier

Thanks Roger,
You formula works fine. This will form part of a 'mega' formula. I thought
of using an array formula to make the sheet more readable. Still wondering if
that is possible?
Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top