Hi,
Assume A1: ABCDABCDABCD
If I want to delete all "A"s and "D"s I would use: =SUBSTITUTE(SUBSTITUTE(A1,"A",""),"C","")
and get: BDBDBD which is fine
My question:
Is there a way to use SUBSTITUTE only once ?
Something like: =SUBSTITUTE(A1,{"A";"C"},"")
I tried it, with no success.
All I'm looking for is a WS build-in function.
Thanks, Elm
Last edited by ElmerS; 04-09-2010 at 03:25 PM.
No; array-entered, the second function returns two results, one deleting As and one deleting Cs. You need the results of one invocation returned to the second.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
Just reiterating shg's point - no, not really, nothing practical at any rate.
I asked a similar question at MrExcel.com sometime back which may/may not be of interest - you might like PGC01's response however (post #19)
http://www.mrexcel.com/forum/showthread.php?t=332284
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thanks.
It was interesting to read through but I had a HUGE "Déjà vu" reading Oaktrees response (quote):
"No VBA, no add-ins, no nesting SUBSTITUTEs.... you can't use the letter A in your formula..."
I hope you understand what I mean by that quoting.
Elm
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks