Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Can someione please assist?
I want to create cell formats using two styles. We have phone numbers that have 6 numbers and some that have seven numbers. (ie (027-123456 or 026-1234567) and i want to be able to put either in the same column, rather than have two columns. Is there any way I cam customise the cells to cater for this so I dont have leading 'zero' that serves no purpose? I would like to use the phone number as reference in a vlookup formula. Using Excel2007 TIA Esra |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Thu, 15 Sep 2011 15:57:16 -0700 (PDT), Esradekan wrote:
Can someione please assist? I want to create cell formats using two styles. We have phone numbers that have 6 numbers and some that have seven numbers. (ie (027-123456 or 026-1234567) and i want to be able to put either in the same column, rather than have two columns. Is there any way I cam customise the cells to cater for this so I dont have leading 'zero' that serves no purpose? I would like to use the phone number as reference in a vlookup formula. Using Excel2007 TIA Esra You can certainly do a conditional number format depending on the value in the cell; but since your examples all have a leading zero, I'm not sure of the possible range of values. Also, the numbers you show have 9 or 10 digits, and you write they have 6 or 7. But if you want to input these all as a number, we need to know the possible range of values for those numbers at the beginning that you are not counting. For example, if there would be a maximum of two digits prior to the six or seven, you could custom format as: Format/Numbers/Custom Type: [<=99999999]00-000000;00-0000000 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I worked it out from that, thanks very much Ron
Esra |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Thu, 15 Sep 2011 17:16:04 -0700 (PDT), Esradekan wrote:
I worked it out from that, thanks very much Ron Esra Glad to help. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi Esra,
put the cells to custom size "000-000000" ....menu / format / cell / Category / customized and now typed 12345678 -- isabelle Le 2011-09-15 18:57, Esradekan a écrit : Can someione please assist? I want to create cell formats using two styles. We have phone numbers that have 6 numbers and some that have seven numbers. (ie (027-123456 or 026-1234567) and i want to be able to put either in the same column, rather than have two columns. Is there any way I cam customise the cells to cater for this so I dont have leading 'zero' that serves no purpose? I would like to use the phone number as reference in a vlookup formula. Using Excel2007 TIA Esra |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
sorry i was outside the trak
(expression of my country) -- isabelle Le 2011-09-15 20:15, isabelle a écrit : hi Esra, put the cells to custom size "000-000000" ...menu / format / cell / Category / customized and now typed 12345678 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lock Cell Format - Allow copy and paste of data without format change | Excel Worksheet Functions | |||
cell format - remove cell format pattern without effecting colors | Excel Discussion (Misc queries) | |||
Can cell format come from and change with reference cell format | Excel Discussion (Misc queries) | |||
Excel Auto-Format cell to email format | Excel Discussion (Misc queries) | |||
How do I copy data in single cell format to a merged cell format | Excel Discussion (Misc queries) |