#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jlo jlo is offline
external usenet poster
 
Posts: 16
Default Format a number

Is there a way to format a number 00000000000 to '00000-000000',

I need the quotes, dash and comma.

I found a style to work but I have to click on each cell to see it change.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Format a number

Format Cells Custom

'00000-000000'

Voila

"jlo" wrote:

Is there a way to format a number 00000000000 to '00000-000000',

I need the quotes, dash and comma.

I found a style to work but I have to click on each cell to see it change.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Format a number

"Sean Timmons" wrote:
"jlo" wrote:
Is there a way to format a number 00000000000 to '00000-000000',
I need the quotes, dash and comma.

Format Cells Custom
'00000-000000'


Forgot the comma. Simply append it to Sean's custom format, to wit:

'00000-000000',

But that presumes that "jlo" has the number zero (or any other number) in
the cell to begin with. I'm suspicious, given that we usually advise people
to enter strings of digits as text (with apostrophe prefix or by
preformatting the cell as Text) when the digit string is not intended to be
used as a number (e.g. credit card number).

"Jlo", are you saying that you want to enter a number (e.g. zero) and have
it appear in the form '00000-000000', (with comma)?

Or are you saying that you see 00000000000 in the cell, and you want it to
appear in that form?

If the latter, is the cell value numeric or text? For example, does
=TYPE(A1) result in 1 or 2?

If Sean's solution does not work for you, the reason might that the cell
contains text, one way or another.


----- original message -----

"Sean Timmons" wrote in message
...
Format Cells Custom

'00000-000000'

Voila

"jlo" wrote:

Is there a way to format a number 00000000000 to '00000-000000',

I need the quotes, dash and comma.

I found a style to work but I have to click on each cell to see it
change.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Format a number

Thank you for the clarify.

"JoeU2004" wrote:

"Sean Timmons" wrote:
"jlo" wrote:
Is there a way to format a number 00000000000 to '00000-000000',
I need the quotes, dash and comma.

Format Cells Custom
'00000-000000'


Forgot the comma. Simply append it to Sean's custom format, to wit:

'00000-000000',

But that presumes that "jlo" has the number zero (or any other number) in
the cell to begin with. I'm suspicious, given that we usually advise people
to enter strings of digits as text (with apostrophe prefix or by
preformatting the cell as Text) when the digit string is not intended to be
used as a number (e.g. credit card number).

"Jlo", are you saying that you want to enter a number (e.g. zero) and have
it appear in the form '00000-000000', (with comma)?

Or are you saying that you see 00000000000 in the cell, and you want it to
appear in that form?

If the latter, is the cell value numeric or text? For example, does
=TYPE(A1) result in 1 or 2?

If Sean's solution does not work for you, the reason might that the cell
contains text, one way or another.


----- original message -----

"Sean Timmons" wrote in message
...
Format Cells Custom

'00000-000000'

Voila

"jlo" wrote:

Is there a way to format a number 00000000000 to '00000-000000',

I need the quotes, dash and comma.

I found a style to work but I have to click on each cell to see it
change.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Format a number

I'll assume that you want to divide an 11 character content into 5 and 6 then
this would be my formula:

Say the content is in cell A1
=if(ISNUMBER(A1),("'"&text(A1,"00000-000000")&"',"),("'"&right(A1,5)&"-"&left
(A1,6)&&"',"))

Value are converted to 11 character text while text must be 11 character in
length. If you're working on number/value only, just use this ="'"&text(A1,
"00000-000000")&"',"


jlo wrote:
Is there a way to format a number 00000000000 to '00000-000000',

I need the quotes, dash and comma.

I found a style to work but I have to click on each cell to see it change.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200909/1

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
Convert numbers from text format to number format merlin68 Excel Discussion (Misc queries) 7 June 20th 07 07:03 PM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM
excel format cells/Number/Category: Number problem Matts Excel Discussion (Misc queries) 5 December 9th 04 09:47 PM


All times are GMT +1. The time now is 07:24 PM.

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

About Us

"It's about Microsoft Excel"