importing phone numbers
Hi
I am trying to import a large phone list from a csv file, but when i do this it drop the first 0 in the number.
Is there a way to stop this happening?
Any help appreciated
Dave
Best Answer
-
It would look similar to the flagging formula above. If it is only dropping one zero then it would be as straightforward as
=IF(LEN([Number Column Name]@row) <> 11, "0" + [Number Column Name]@row)
If you are dropping multiple digits, then we would need to tweak it a little bit.
Answers
-
Make sure the field in the file is a text field.
-
Hi Paul
If i change the field to a text file it drops the 0
Is there a way in Smart sheet to ensure a column is 11 digits, so if i import and it only gives me 10 digits it can auto add a zero at the beginning?
Thanks
Dave
-
Not a text file. The field itself in the csv file should be set as a text value.
There is no way to automatically add the zero upon import, but you could (after import) add a helper column (flag type in this example) and quickly apply the following column formula:
=IF(LEN([Number Column Name]@row) <> 11, 1)
This will flag all rows that are not 11 digits. You can then filter on the flag so that you only see the problem rows and can correct.
There is also a solution with a formula added (after import) that will fill those missing digits in with zero which you can then copy/paste special or just reference the new column in any calculations or hide the original column from view.
-
Hi Paul
Thanks for taking the time to answer, you mention a formula after import that will fill the missing digits with a zero. Could you kindly explain or provide a sample of what this would look like?
Thanks as always
Dave
-
It would look similar to the flagging formula above. If it is only dropping one zero then it would be as straightforward as
=IF(LEN([Number Column Name]@row) <> 11, "0" + [Number Column Name]@row)
If you are dropping multiple digits, then we would need to tweak it a little bit.
-
Thank you as always Paul
Most helpful
Regards
Dave
-
Happy to help. 👍️
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives