A lady who I was training had a column of telephone numbers, some of which had the 0 in front of them, while some didn’t. She wanted all the numbers to be correct with a 0 at the front. First of all we formatted the column as text.
Assuming the first phone number was in cell B2, the relevant formula, probably in cell C2, is
=IF(LEFT(B2,1)<>”0″, “0”&B2,B2)
Use the Autofill handle to copy this down for the rest of the phone numbers.
Then select the now correct numbers, copy them, click back in cell B2 and paste values. You now have a nicely formatted column of phone numbers and can delete the figures in the column where you wrote your IF statement.
Find out more about our Excel training London, UK, or our Excel training in Dorset, Wiltshire, Hampshire .
Find out more about our Excel training Sydney, Australia.
Reblogged this on ifonlyidknownthat.