Question

I need to remove the commas in the string ", xxxxxx," (cell D4) and am currently already using the formula =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A4,B4,""),C4,""),E4,"")

Ex.

A4: 134 Main, Burles, NC 28817

B4: 28817

C4: 134 Main

D4: i have parsed the data into the above formula, yielding the result ", Burles,"

I've tried concatentate adding the replace function and nothing happens. The result needs to read without spaces or commas!

Help!

Was it helpful?

Solution

Is this what you are looking for?

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A4,B4,""),C4,""),E4,""),",","")

This will remove the commas, as below:

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top