#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default Cell format

A cell contains 1234.

I then format the cell by doing /FORMAT/CELLS/NUMBER/CUSTOM with "type"
= 00000000000 and I press OK. The cell's contents is displayed
00000001234.

However, the length of the cell is only 4 characters (not 11) and its
format has changed from "Custom" to "Special".

How do I keep the "Custom" formatting?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Cell format

To answer your first question about the length... The value of the cell is
still 1234, so the LEN function will return 4. If you want the LEN to
include the zeros you will need something like LEN(TEXT(A1,"00000000000")).
If you plan on using other text functions, you will need to change them like
this as well.

As for your second question I made the same format and it stayed as custom.
It doesn't really matter as long as the cell looks and acts the way you want.

"GARY" wrote:

A cell contains 1234.

I then format the cell by doing /FORMAT/CELLS/NUMBER/CUSTOM with "type"
= 00000000000 and I press OK. The cell's contents is displayed
00000001234.

However, the length of the cell is only 4 characters (not 11) and its
format has changed from "Custom" to "Special".

How do I keep the "Custom" formatting?


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
conditional cell format based on cell in same row, previous column tamiluchi Excel Worksheet Functions 7 May 3rd 06 04:11 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Cell data format falloutx Excel Discussion (Misc queries) 1 February 10th 06 01:46 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
can't format cell - have tried unlocking and unprotecting griffin Excel Discussion (Misc queries) 1 April 5th 05 02:11 AM


All times are GMT +1. The time now is 04:31 AM.

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"