Find And Replace a Dash

M

Maverick50

How do I do this? Look at Phone Number...I need the dash.

Actual
4915 N Federal Highway<br>Lighthouse Point,, FL 33064<br>Phone: 9544809085
11 West 2ND Avenue<br><br>Williamson,, WV 25661<br>Phone: 3042355659
10673 W Street<br> Charles Road<br>Sumner, MI 48889<br>Phone: 9898332265

This is what I would like to finish with. I have hundreds of these.

Results
4915 N Federal Highway<br>Lighthouse Point,, FL 33064<br>Phone: 954-480-9085
11 West 2ND Avenue<br><br>Williamson,, WV 25661<br>Phone: 304-235-5659
10673 W Street<br> Charles Road<br>Sumner, MI 48889<br>Phone: 989-833-2265


Thank You

Steve
 
M

Mike H

Hi,

Assuming you first entry is in A1, put this in b1

=LEFT(A1,LEN(A1)-7)&"-"&MID(A1,LEN(A1)-7,3)&"-"&RIGHT(A1,4)

Double click the fill handle to fill down,


Mike
 
S

Suleman Peerzade

Hi,

Try this
=TEXT(A2,"000\-000\-0000")
change the cell reference as it suits you.
--
_______________________
Click "Yes" if it helps
________
Thanks
Suleman Peerzade
 
M

Maverick50

GGGGreat....... Cut and paste and away I went!!!!!!
P.S. I do this for my GPS...My own benifit.
 
D

David Biddulph

That would be OK if the cell contained only the phone number, but it doesn't
work with the sort of text string which the OP gave as examples.
 
D

Dave Curtis

Hi,
You could also try something like this:

=LEFT(A1,LEN(A1)-10)&TEXT(RIGHT(A1,10),"000\-000\-0000")

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top