Excel Formula: Add country code or area code to phone number
When you import phone numbers from some devices to a worksheet, it may lost the country code and area code. Here this tutorial provides two simple formula to quickly add same country code and area code to a list of phone numbers in Excel.
|Country_code: the country code you want to add to the phone number, it can be in number format, text format, such as “86”, “+86”, “(86)”.|
|Area_code: the area code you want to add to the phone number, it can be in number format or text format, such as “20”, “+20”, “20-”.|
|Phone_num: the number you used to add country code and area code, it can be in number format, text format, such as “44243342”, “442-433-42”.|
How this formula work
Supposing the phone number in cell B3, area code in cell E3, country code in cell F3, please use below formula:
Press Enter key, the area code and country code have been added in the front of the phone number.
CONCATENATE function is used to join two or more texts items from multiple cells into one.
- Extract last line of cell
- Trim Text To N Words
Here introduces the formula to extract n words from left side of a text string.
- Split sentence into words
This tutorial provides formulas to separate words of sentence into separated columns.
- Extract first line of cell
To extract first line of contents from multi-lines with formula.
- LEFT function
Extract text from left side.
- CONCATENATE function
Join two or more texts items from multiple cells into one.
- IF function
Test for conditions.
- MID function
Extract part of text from a cell value based on the location and length.