Solved

# suffix 0 issue

Posted on 2014-10-08
96 Views
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
Question by:pma111
• 2

LVL 25

Accepted Solution

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

LVL 25

Expert Comment

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

ID: 40368369
many thanks
0

## Featured Post

### Suggested Solutions

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.