?
Solved

suffix 0 issue

Posted on 2014-10-08
3
Medium Priority
?
110 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Accepted Solution

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

752 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