Dec 02, 2022 01:35 PM
I am looking for help creating a formula field to change the format that phone numbers appear in.
On Airtable, the phone field automatically formats phone numbers as: (555) 555-5555.
I need the phone numbers to be formatted as follows instead: +1 555-555-5555.
Please help!
Dec 05, 2022 12:58 PM
This formula should work.
"+1 " & SUBSTITUTE(SUBSTITUTE(SUBSTITUTE({Phone #}, '(', ''), ')', '')," ","-")
It finds and removes the parentheses with the SUBSTITUTE function, then finds the remaining " " (Space) and replaces it with "-". Then you just use the "&" operator to add "+1 " to the front.
Hope that helps!
Nov 15, 2024 03:37 AM - edited Nov 18, 2024 06:40 AM
Formatting phone numbers, especially if you’re dealing with a verification number, can get tricky sometimes. One way to handle it is by using a formula that checks if the number has the correct number of digits and then formats it accordingly. It’ll put the phone number in the standard format, like (123) 456-7890, once it’s entered into cell A1. Another option is to break the number down into sections using text functions. The best solution often depends on what kind of platform you're working with—if it's for a website or a document, different formatting rules might apply. It can be helpful to look up a simple guide on formatting verification phone number, as sometimes they have their own rules.