Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
ben ben is offline
external usenet poster
 
Posts: 22
Default number format for a cell

Hello,

I want to store a 12 digit number in a some cells. Ideally, I'd like it with
a space after every 4th number and such that when I copy and paste to other
applications there is no space in between. I tried doing a custom format
set to "#### #### #### ####" but had some serious problems with that.
Firstly, the last number for some reason would change itself to '0' and
another problem I had was that pasting the number would maintain the spaces
even though it was only there in the formating and not in the way the number
was stored.

Can anyone give me some guidance on this.
Thanks you very much.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default number format for a cell

For 12 digit numbers:

0000 0000 0000

For 16 digit numbers use a Text format ( 15 digits is the max for numbers)
--
Gary''s Student - gsnu2007k


"ben" wrote:

Hello,

I want to store a 12 digit number in a some cells. Ideally, I'd like it with
a space after every 4th number and such that when I copy and paste to other
applications there is no space in between. I tried doing a custom format
set to "#### #### #### ####" but had some serious problems with that.
Firstly, the last number for some reason would change itself to '0' and
another problem I had was that pasting the number would maintain the spaces
even though it was only there in the formating and not in the way the number
was stored.

Can anyone give me some guidance on this.
Thanks you very much.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
ben ben is offline
external usenet poster
 
Posts: 22
Default number format for a cell

Gary''s Student wrote:
For 12 digit numbers:

0000 0000 0000

For 16 digit numbers use a Text format ( 15 digits is the max for numbers)


I meant 16 digit number actually and that must be my problem. Thanks.

I presume formating the text to have spaces is not possible then?
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,480
Default number format for a cell

Hi Ben

For 16 digits, you need to either pre-format the cell as text, or use an
apostrophe before your number to make it a text entry
'1234567890123456

--
Regards
Roger Govier

"ben" wrote in message
...
Gary''s Student wrote:
For 12 digit numbers:

0000 0000 0000

For 16 digit numbers use a Text format ( 15 digits is the max for
numbers)


I meant 16 digit number actually and that must be my problem. Thanks.

I presume formating the text to have spaces is not possible then?


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,358
Default number format for a cell

When you copy a cell, and paste it (CTRL+C then CTRL+V), you not only copy
the cell contents, but you are also copying cell formatting including
conditional formatting. If you Paste Special--Values, then it shouldn't copy
your formatting and it should just display the numbers as you are wanting.
(keyboard shortcut, ALT, E, S, V).

Hope this helps.
--
John C


"ben" wrote:

Hello,

I want to store a 12 digit number in a some cells. Ideally, I'd like it with
a space after every 4th number and such that when I copy and paste to other
applications there is no space in between. I tried doing a custom format
set to "#### #### #### ####" but had some serious problems with that.
Firstly, the last number for some reason would change itself to '0' and
another problem I had was that pasting the number would maintain the spaces
even though it was only there in the formating and not in the way the number
was stored.

Can anyone give me some guidance on this.
Thanks you very much.



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,480
Default number format for a cell

Sorry, forgot you wanted spaces
'1234 5678 9012 3456

--
Regards
Roger Govier

"ben" wrote in message
...
Hello,

I want to store a 12 digit number in a some cells. Ideally, I'd like it
with a space after every 4th number and such that when I copy and paste to
other applications there is no space in between. I tried doing a custom
format set to "#### #### #### ####" but had some serious problems with
that. Firstly, the last number for some reason would change itself to '0'
and another problem I had was that pasting the number would maintain the
spaces even though it was only there in the formating and not in the way
the number was stored.

Can anyone give me some guidance on this.
Thanks you very much.


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
Format cell to Number David R. S. Excel Discussion (Misc queries) 14 August 17th 09 04:03 PM
Number format in cell changes Rubie Excel Discussion (Misc queries) 8 August 26th 08 08:30 PM
Cell Number format Lamb Chop Excel Discussion (Misc queries) 3 July 25th 06 11:29 PM
Format a cell with a custom number format Armor Excel Worksheet Functions 4 January 29th 06 11:25 PM
CELL/NUMBER FORMAT BIBBYBIBBER Excel Discussion (Misc queries) 5 November 18th 05 09:02 PM


All times are GMT +1. The time now is 05:45 AM.

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"