Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Google Sheets: How To Reformat Phone Numbers Within One Column?

$
0
0

I have a google sheet in which people's phone numbers are stored. I want them to be displayed in format NNN-NNN-NNNN, and to do this I like to store them in format NNNNNNNNNN set to display that way (although it's not as important how they're actually stored, just the visual end result). Sometimes they are pasted in from somewhere where they are formatted (NNN) NNN-NNNN, or in some other format, and that is inconsistent and causes them to fail to be displayed appropriately. Is there a way I can either:

  1. set the formatting such that it will try harder to display various phone number formats as the same NNN-NNN-NNNN format?
  2. have the column auto-coerce incorrectly formatted entries people type into it like (NNN) NNN-NNNN, such that it will change the data to NNNNNNNNNN and then display properly?

They challenge here is that I don't want a separate data entry and a data display column, I want to use only one column for this.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>