Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
David
 
Posts: n/a
Default Array formula help please

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
--
David
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default Array formula help please

Hi David

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

Regards

Roger Govier


David wrote:
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
--
David

  #3   Report Post  
David
 
Posts: n/a
Default Array formula help please

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
--
David

"Roger Govier" wrote:

Hi David

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

Regards

Roger Govier


David wrote:
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
--
David


  #4   Report Post  
Roger Govier
 
Posts: n/a
Default Array formula help please

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


David wrote:
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
--
David

"Roger Govier" wrote:


Hi David

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

Regards

Roger Govier


David wrote:

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
--
David


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
array formula Jonathan Cooper Excel Discussion (Misc queries) 4 September 9th 05 12:27 PM
#VALUE! On An Array Formula Referencing a Range Outside The Workbo paige Excel Discussion (Misc queries) 5 September 9th 05 12:05 AM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Trouble shooting#NA error in Array formula RonR Excel Discussion (Misc queries) 2 June 14th 05 09:58 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 01:51 PM.

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"