I have a google sheet that reformats a csv. The desired functionality is the user pastes the csv contents into the sheet as plain text, and it is automatically formatted in a separate tab. I have all the formatting set, but there is a problem cropping up with the phone number field. In the csv, it is formatted as +1 222 222 2222. I have formatted this field as plain text, so when the phone number is pasted in as values, it works and I remove plus sign on another tab. However, the plain text formatting doesn't appear to hold, as the users of this sheet encounter formula parse errors for some values. I reformat the column as plain text, and it works again. I'm guessing the user accidentally pasted the data regularly (not as values), default format was changed, and then the plus sign caused errors. Is there a way to permanently format this column as plain text? Or a apps script solution you can think of that would do this?I know of the single quote trick to get it to ignore the +, however I need this sheet to function so that you can paste in data, delete it, paste again the next day, and it always works. Essentially I can't just leave a formula in this column, I need to have the data pasted in and deleted from this tab every day. Any advice is much appreciated!
↧