Concatenate question to remove a period (everything but this already figured out)

thisdumbdot

New Member
Joined
Sep 5, 2019
Messages
2
Hey everyone,

I just stumbled across this forum during a frenzied state of Google searches, but with virtually zero experience with Excel I was fortunate enough to reverse engineer 99% of a phone number formatting issue.

The problem is I can't figure out how to remove the first "." from "555.555.5555" to change it to "+15555555555"

Here's the formula I have so far: =concatenate("+1",left(N2,3),"",mid(N2,4,3),"",right(N2,4))

But I can't seem to identify where the "." is still carrying over from?

Here's what happens:

Column N Column O
555.555.5555 +1555.5555555

Any ideas/solutions would be greatly appreciated!!


 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi & welcome to MrExcel.
How about
="+1"&SUBSTITUTE(N2,".","")
 
Upvote 0
Its from your mid function i believe. You can change it to:

=concatenate("+1",left(N2,3),"",mid(N2,5,3),"",right(N2,4))

but i would just use:

="+1" & SUBSTITUTE(N2, ".", "")
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top