Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello
In a spreadsheet containing UK phone numbers, all numbers should begin with a zero, but when we pull off a report and copy and paste it into Excel, depending on what's been input at source, some of the entries lack the zero. Is there a way of formatting the column so that, if no zero appears at the start of a phone number, one can be inserted at the start of each number? Thanks. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On May 8, 8:00 am, bollard wrote:
Hello In a spreadsheet containing UK phone numbers, all numbers should begin with a zero, but when we pull off a report and copy and paste it into Excel, depending on what's been input at source, some of the entries lack the zero. Is there a way of formatting the column so that, if no zero appears at the start of a phone number, one can be inserted at the start of each number? Thanks. If your number is of fixed length (say xxxx-xxxx) you can format like the following: Format-Cells-Number-Custom-0000-0000 This will turn the number 1234567 into 0123-4567. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello
Many thanks for that. it works a treat. "Edward" wrote: On May 8, 8:00 am, bollard wrote: Hello In a spreadsheet containing UK phone numbers, all numbers should begin with a zero, but when we pull off a report and copy and paste it into Excel, depending on what's been input at source, some of the entries lack the zero. Is there a way of formatting the column so that, if no zero appears at the start of a phone number, one can be inserted at the start of each number? Thanks. If your number is of fixed length (say xxxx-xxxx) you can format like the following: Format-Cells-Number-Custom-0000-0000 This will turn the number 1234567 into 0123-4567. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
If you format the receiving cells as Text before copying and pasting, then the leading zero will be retained. If you already have entries and some do not have leading zero's then you could enter in a spare column =IF(LEFT(A1)="0",A1,"0"&A1) copy down as far as required. Then copy this new range of cells, and Paste SpecialValues back over the original. -- Regards Roger Govier "bollard" wrote in message ... Hello In a spreadsheet containing UK phone numbers, all numbers should begin with a zero, but when we pull off a report and copy and paste it into Excel, depending on what's been input at source, some of the entries lack the zero. Is there a way of formatting the column so that, if no zero appears at the start of a phone number, one can be inserted at the start of each number? Thanks. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Roger
Many thanks for this. It works a treat! "Roger Govier" wrote: Hi If you format the receiving cells as Text before copying and pasting, then the leading zero will be retained. If you already have entries and some do not have leading zero's then you could enter in a spare column =IF(LEFT(A1)="0",A1,"0"&A1) copy down as far as required. Then copy this new range of cells, and Paste SpecialValues back over the original. -- Regards Roger Govier "bollard" wrote in message ... Hello In a spreadsheet containing UK phone numbers, all numbers should begin with a zero, but when we pull off a report and copy and paste it into Excel, depending on what's been input at source, some of the entries lack the zero. Is there a way of formatting the column so that, if no zero appears at the start of a phone number, one can be inserted at the start of each number? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting an "Add-In" in Excel "Com Add-Ins" box | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
inserting a conditional "go to" command on a excel "if" function | Excel Worksheet Functions | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |