LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default set the number of characters in a cell

But you also allow ABCDEABCDE (because it's just based on length of the text).

The OP could still format the cell as text, then use:
format|conditional formatting
formula is:
=AND(LEN(A1)=10,ISNUMBER(-A1))

But this still allows non-numeric entries (darn scientific notation!):
12341234E1
But that may not be a problem for the OP.




Sloth wrote:

Format the cells as text first
The select the Data menu and choose Validation
Under Allow choose Text length
Under Data choose Equal to
Under Length type 10
Click OK

by numbers I assume you mean digits. This method will not allow 123456789,
unless you enter it as 0123456789. Dave's method will allow 123456789 and
then show as 0123456789. With his method though the result is still a
number. The result of mine will be a text string.

"CF" wrote:

How can I format a cell so that ONLY ten numbers can be entered; no less than
ten, and no more than ten can be entered. Also, some of these ten digit
numbers begin with a zero and I would like that zero to display as well as
count as one of the ten digits.

Thanks in advance for your help!


--

Dave Peterson


 
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
Max number of characters in a cell Dajana Excel Discussion (Misc queries) 1 September 25th 05 10:41 PM
Number of characters in a cell (one row, merged columns) Dajana Excel Discussion (Misc queries) 1 September 19th 05 09:30 PM
fill or truncate to a certain number of characters in a cell Jan Buckley Excel Worksheet Functions 1 March 16th 05 03:46 PM
How do you count number of characters in a single cell Joe Excel Worksheet Functions 1 February 18th 05 09:08 PM
How do you count number of characters in a single cell Joe Excel Worksheet Functions 1 February 18th 05 08:33 PM


All times are GMT +1. The time now is 09:02 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"