Phone Number Format based on country

underin

New Member
Joined
Apr 13, 2016
Messages
1
Hi Guys,

I have an excel with a column of phone numbers in varying formats.

I need a system to clean the numbers based on country code which is stored in another column.

For instance lets say the phone number column contains:

4921030012722
+49 (2103) 00 12722
12103001282
+1 (210) 300 1282

Lets assume the country code for the first two numbers is Germany and US for the latter two.

The formatted numbers should be +xx (xxxx) xx xxxxx for Germany with the first two digits representing the country code and +x (xxx) xxx xxxx for US.

Any help is highly appreciated.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hey,

not really an answer to your question but i think thats far more complicated than you think.
You want to display the area code in parenthesis and you use Germany in your example, but our area codes dont have a set number of digits. It can vary between three and, I THINK, 5 digits (including the leading zero, which is removed when adding the country code) and the phone number without the area code doesnt have a fixed number of digits either.
Like my number at work would be +xx (xxx) xxxxxxx and my number at home would be +xx (xxxx) xxxxx and the number of my neighbour could be +xx (xxxx) xxxxxx and the number of a person in Berlin could be +xx (xx) xxxxxxx
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,760
Messages
6,126,733
Members
449,333
Latest member
Adiadidas

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