I am looking to create a script that will automatically convert a phone number that is cut & pasted into Google Sheets. The phone number is in a text format and I need to change it into a value. Currently, I have to have an additional column(s) for each pasted phone number that converts it. I would like to eliminate having these extra columns.
The formula I am using to do the converting are:
Column C:
=IF(ISBLANK(A3)," ",(VALUE(REGEXREPLACE(A3, "[-]", ""))))
Column D:
=IF(ISBLANK(B3)," ",(VALUE(REGEXREPLACE(B3, "[-]", ""))))
I'm very new to scripts and just starting to learn about it. Any help would be much appreciated. Thank you.
