Solved

suffix 0 issue

Posted on 2014-10-08
3
103 Views
Last Modified: 2014-10-08
I have a column with a load of mobile phone numbers. Some are incorrect, all should begin with a 0 but some dont. I need a formula in the next column (i.e B2) to essentially say if A2 doesnt begin with 0, add a 0 to the front and then the rest of the data after the 0, or if the data does bein with a 0, do nothing and just copy over the values as is.

so 7777888888 in A2 should be come 07777888888 in B2 after the formula. Whereas 07777888888 should stay the same in B2.
0
Comment
Question by:pma111
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40368354
=IF(LEFT(A1,1)="0",A1,CONCATENATE("0",A1))
0
 
LVL 25

Expert Comment

by:ProfessorJimJam
ID: 40368355
put the below formula in B2  and then drag down


=IF(LEFT(A2,1)="0",A2,CONCATENATE("0",A2))
0
 
LVL 3

Author Comment

by:pma111
ID: 40368369
many thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvieā€¦
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calculā€¦
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question