Hey Community!
Here’s my problem: I have users adding phone numbers to records. Problem is, the way the are inputting records doesn’t allow me to have Data validation. I need the number they input in a specific format, and I was hoping there might be a formula that could do this.
Format we need: 1 (XXX) XXX-XXXX
Inputs we might get (because users make mistakes) =
- 1 xxx xxx xxxx
- xxx xxx xxxx
- xxxxxxxxxx
- 1 (xxx) xxx xxxx
- (xxx) xxx xxxx
What is important for us is there is the area code, aka, a “1” at the front of every number. I was thinking about creating a formula that adds a “1” at the start, but in the circumstances where a user does what we want, and adds a “1”, I don’t want to add it as it’d break it.
Does anyone know how to put a formula together that’ll do this?
PS,
Bonus points if you can ensure it looks “pretty” by formatting it in this way: 1 (XXX) XXX-XXXX