J
Jim Berglund
I have many lines of data in which each includes a telephone number. The
lines are not consistent in text or spacing. The number can have either a
(403) area code or a (587) area code.
I want to extract the number and have tried the following, which results in
a #VALUE!
=IF(MID(A2,(FIND("(587)",A2)),14)="#VALUE!",MID(A2,(FIND("(403)",A2)),14),MID(A2,(FIND("(587)",A2)),14))
If I use =(MID(A2,(FIND("(587)",A2)),14) on the lines that have a 587 area
code, it works. 'Same for the 403 code.
I need them to work together.
Any ideas on getting this to work - or any alternative approaches would be
appreciated.
Jim Berglund
lines are not consistent in text or spacing. The number can have either a
(403) area code or a (587) area code.
I want to extract the number and have tried the following, which results in
a #VALUE!
=IF(MID(A2,(FIND("(587)",A2)),14)="#VALUE!",MID(A2,(FIND("(403)",A2)),14),MID(A2,(FIND("(587)",A2)),14))
If I use =(MID(A2,(FIND("(587)",A2)),14) on the lines that have a 587 area
code, it works. 'Same for the 403 code.
I need them to work together.
Any ideas on getting this to work - or any alternative approaches would be
appreciated.
Jim Berglund