Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Office 2003 & 2007, Win XP Pro
I have a list of telephone numbers eg: 0117839178 0866610689 0917142591133 I wish to convert them to: 011 783 9178 086 661 0678 091 714 259 1133 All numbers begin with zero. Much appreciated. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Perhaps something like this might suffice
In B1, copied down: =IF(LEN(A1)=10,LEFT(A1,3)&" "&MID(A1,4,3)&" "&RIGHT(A1,4),IF(LEN(A1)=13,LEFT(A1,3)&" "&MID(A1,4,3)&" "&MID(A1,7,3)&" "&RIGHT(A1,4),"")) -- Max Singapore http://savefile.com/projects/236895 Downloads: 15,500, Files: 352, Subscribers: 53 xdemechanik --- "Stan in South Africa" <me@there wrote in message ... Office 2003 & 2007, Win XP Pro I have a list of telephone numbers eg: 0117839178 0866610689 0917142591133 I wish to convert them to: 011 783 9178 086 661 0678 091 714 259 1133 All numbers begin with zero. Much appreciated. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That may need changing if the inputs are not text but numbers formatted with
a leading zero. -- David Biddulph "Max" wrote in message ... Perhaps something like this might suffice In B1, copied down: =IF(LEN(A1)=10,LEFT(A1,3)&" "&MID(A1,4,3)&" "&RIGHT(A1,4),IF(LEN(A1)=13,LEFT(A1,3)&" "&MID(A1,4,3)&" "&MID(A1,7,3)&" "&RIGHT(A1,4),"")) -- Max Singapore http://savefile.com/projects/236895 Downloads: 15,500, Files: 352, Subscribers: 53 xdemechanik --- "Stan in South Africa" <me@there wrote in message ... Office 2003 & 2007, Win XP Pro I have a list of telephone numbers eg: 0117839178 0866610689 0917142591133 I wish to convert them to: 011 783 9178 086 661 0678 091 714 259 1133 All numbers begin with zero. Much appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I remove leading spaces and leave the remianing spaces w | Excel Worksheet Functions | |||
How to make a field created a part of the Pivot Table Field List? | Excel Discussion (Misc queries) | |||
Linked date field in worksheet defaults a blank field as 1/0/1900 | Excel Worksheet Functions | |||
spaces not recognized as spaces | Excel Worksheet Functions | |||
How do you remove excess spaces from an Excel field? | Excel Discussion (Misc queries) |