ThomasBrown
Technical User
Hi there folks
I have an application and I can export the client details to excel and in a row I have all the telephone numbers. They have no spaces:
+27211234567
+27217896543
+27833698521
+27112587413
Now what I need to do is count the lenghth, if the length = 12 and starts with +27 then drop the +27 and replace with 0 and then format the numbers with spaces or (). I may need to format it in multiple differant formats which I could go in differant columns.
so it would look like this
+27211234567 021 123 4567 (021)410 5000 (021) 410-5000
+27217896543 021 789 6543 (021)789 6543 (021) 789-6543
+27833698521 083 369 8521 (083)369 8521 (083) 369-8521
+27112587413 011 258 7413 (011)258 7413 (011) 258 7413
If the number is not 12 characters in length nothing must happen to the number. It must remain as is.
I know I could do it in Crystal using the picture () formula, but how is this done in Excel.
Any help would be great.
Many Thanks
Thomas
I have an application and I can export the client details to excel and in a row I have all the telephone numbers. They have no spaces:
+27211234567
+27217896543
+27833698521
+27112587413
Now what I need to do is count the lenghth, if the length = 12 and starts with +27 then drop the +27 and replace with 0 and then format the numbers with spaces or (). I may need to format it in multiple differant formats which I could go in differant columns.
so it would look like this
+27211234567 021 123 4567 (021)410 5000 (021) 410-5000
+27217896543 021 789 6543 (021)789 6543 (021) 789-6543
+27833698521 083 369 8521 (083)369 8521 (083) 369-8521
+27112587413 011 258 7413 (011)258 7413 (011) 258 7413
If the number is not 12 characters in length nothing must happen to the number. It must remain as is.
I know I could do it in Crystal using the picture () formula, but how is this done in Excel.
Any help would be great.
Many Thanks
Thomas