#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Cell format

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Cell format

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Cell format

I worked it out from that, thanks very much Ron

Esra
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Cell format

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 587
Default Cell format

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 587
Default Cell format

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
cell format - remove cell format pattern without effecting colors Bas Excel Discussion (Misc queries) 1 March 23rd 09 02:54 PM
Can cell format come from and change with reference cell format jclouse Excel Discussion (Misc queries) 1 November 29th 06 03:20 AM
Excel Auto-Format cell to email format Please Help Me Excel Discussion (Misc queries) 1 March 23rd 06 05:15 PM
How do I copy data in single cell format to a merged cell format Paul Excel Discussion (Misc queries) 1 June 27th 05 11:00 AM


All times are GMT +1. The time now is 01:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"