Gilbert said:
Sorry, DDL, it works when the result-string is "", but it doen't wor
when
the A1-string is ""
Suggestions ?
Gilbert
It should return a blank if A1 is blank. It will return an error if A
contains a "formula blank", i.e "" as the result of a formula. You ca
fix that with a small alteration
=MCONCAT(IF(ISNUMBER(SEARCH(MID(A1,ROW(INDIRECT("1:99")),1),B1)),"",MID(A1,ROW(INDIRECT("1:99")),1)))
this assumes that your entry in A1 has less than 100 characters
THis formula should work for numbers or letters (note that if a numbe
of letter occurs once in B1 all instances will be removed)
ISNUMBER is not checking whether A1 is a number but checks whether th
result of the SEARCH function is a number, SEARCH either returns a
error or a number