Help with leading zeros disappearing!

sterjohn

New Member
Joined
Jan 17, 2016
Messages
28
Hi, I am hoping someone can help me here?
I am trying to add text to the end of a list of mobile phone numbers in a column, (eg: 04555555555@xxxxxxxxxxx.com.au)
I have the mobile numbers in one column and @xxxxxxxxxxxx.com.au in another column.
When I try to combine the numbers and letters in a cell, the leading zero on the phone number disappears no matter what I try.
Any advice would be very much appreciated before I go bald from pulling my hair out.. :)
Kind regards,
JS
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hello Sterjohn,

By default, Excel will ignore leading zeros when typed as a number. The simplest method I find is to convert the number to text. To do this, simply place an apostrophe(') in front of the mobile number. Your zeros will remain thereafter.

I hope that this helps.

Cheerio,
vcoolio.
 
Upvote 0
With A1 is phone number, B1 is email
I guess A1 is custom format as 00000000000 (11 zeroes)

If you want to take 11-digit phone number then combination formula should be:
Code:
=RIGHT("0000"&A1,11)&B1
 
Upvote 0
Hello Sterjohn,

By default, Excel will ignore leading zeros when typed as a number. The simplest method I find is to convert the number to text. To do this, simply place an apostrophe(') in front of the mobile number. Your zeros will remain thereafter.

I hope that this helps.

Cheerio,
vcoolio.
Hi vcoolio, thanks for your reply..
Unfortunately, I did try the apostrophe method as you suggest but somehow when I then upload the excel file to another platform, (used for sending bulk SMS messages to my customers) it
doesn't want to work.
It works without the apostrophe, (tried this with a single number and manual entry) so I need to find a way to keep the leading zero using another way.
Tried converting the column of phone numbers to text as well, still no joy.
Any further thoughts I could try?
Thanks again,
John.S
 
Upvote 0
Hi vcoolio, thanks for your reply..
Unfortunately, I did try the apostrophe method as you suggest but somehow when I then upload the excel file to another platform, (used for sending bulk SMS messages to my customers) it
doesn't want to work.
It works without the apostrophe, (tried this with a single number and manual entry) so I need to find a way to keep the leading zero using another way.
Tried converting the column of phone numbers to text as well, still no joy.
Any further thoughts I could try?
Thanks again,
John.S
I have a long list of numbers to which I want to add "@e2s.smsbroadcast.com.au" result would be: 0457000605@e2s.smsbroadcast.com.au but it's trickier than I thought!
 
Upvote 0
Did you try @bebo021999's suggestion ?
When you are in a cell with the mobile number in it, what do you see in the formula bar ie do you see the leading zero in the formula bar ?
What formula are you using to combine the 2 fields ? Are you by any chance using VBA ?
 
Upvote 0
Hello John,

I've just done a little test on my suggestion in post #2 and all worked as expected. Did you save the workbook with Column A formatted as text before uploading it to the other platform?
Bebo's method should work as well but I didn't test it.
Another method which could work would be to format both Columns A and B as text and in Column C (still in general format) try this formula dragged down as far as needed:-

=CONCAT(RIGHT("0"&$A1,10),$B1)

Australian mobile numbers only have ten digits.

I hope that this helps.

Cheerio,
vcoolio.
 
Upvote 0
Solution
Did you try @bebo021999's suggestion ?
When you are in a cell with the mobile number in it, what do you see in the formula bar ie do you see the leading zero in the formula bar ?
What formula are you using to combine the 2 fields ? Are you by any chance using VBA ?
Thanks for your reply Alex,
thankfully, finally, have it sorted using the Concat function.
All the best,
John.S
 
Upvote 0
Hello John,

I've just done a little test on my suggestion in post #2 and all worked as expected. Did you save the workbook with Column A formatted as text before uploading it to the other platform?
Bebo's method should work as well but I didn't test it.
Another method which could work would be to format both Columns A and B as text and in Column C (still in general format) try this formula dragged down as far as needed:-

=CONCAT(RIGHT("0"&$A1,10),$B1)

Australian mobile numbers only have ten digits.

I hope that this helps.

Cheerio,
vcoolio.
Awesome!
Thanks vcoolio, the concat method solved the issue.
Really appreciate your help on this as it was driving me crazy..
All the best and thanks again. :)
John.S
 
Upvote 0
You're welcome John. I'm glad to have been able to help and thanks for the feed back.

Cheerio,
vcoolio.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top