How to format phone numbers in Google Sheets
CRMs, SMS tools and WhatsApp lists work best with E.164 numbers: a plus sign, the country code and the number with no spaces, e.g. +15551234567 or +525512345678.
Step 1: keep only digits
=REGEXREPLACE(TO_TEXT(A2),"[^0-9]","") turns "(555) 123-4567" into 5551234567.
Step 2: add the country code
For a list where everything is US/Canada and 10 digits long:
=IF(LEN(B2)=10,"+1"&B2,IF(AND(LEN(B2)=11,LEFT(B2,1)="1"),"+"&B2,"CHECK"))
For Mexico (10-digit numbers): =IF(LEN(B2)=10,"+52"&B2,IF(AND(LEN(B2)=12,LEFT(B2,2)="52"),"+"&B2,"CHECK"))
Step 3: stop Sheets from eating the plus sign
If Sheets turns +15551234567 into a number, format the column as Format → Number → Plain text before pasting values.
Mixed countries?
Lists with US, Mexican and Brazilian numbers mixed together need per-row rules (lengths and prefixes differ). That is where formulas get long and a tool saves time.
DataTools AI