hi guys,
this really bothers me hope u can help.
A1 contains (8017) 342-3378, and only contain 4 non-numbers --> (, ), -, <space>
my original intention was to extract the numbers from the string above. i.e. 80173423378
using purely formula, i have not seen any that works.
looking at the string i noticed there are only 4 fixed non-numbers. so i was thinking, instead of writing long formula to extract the numbers only, i might as well replace/substitute 4 non-numbers into <space> and use TRIM.
i tried this formula: =TRIM(SUBSTITUTE(A1,{"(",")","-"},""))
but it seems the hard-coded array doesnt work. the only working solution is to nest SUBSTITUTE 4 times (it works but not practical if you have multiple characters to replace).
any ideas?
thanks!
this really bothers me hope u can help.
A1 contains (8017) 342-3378, and only contain 4 non-numbers --> (, ), -, <space>
my original intention was to extract the numbers from the string above. i.e. 80173423378
using purely formula, i have not seen any that works.
looking at the string i noticed there are only 4 fixed non-numbers. so i was thinking, instead of writing long formula to extract the numbers only, i might as well replace/substitute 4 non-numbers into <space> and use TRIM.
i tried this formula: =TRIM(SUBSTITUTE(A1,{"(",")","-"},""))
but it seems the hard-coded array doesnt work. the only working solution is to nest SUBSTITUTE 4 times (it works but not practical if you have multiple characters to replace).
any ideas?
thanks!