#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default Counting characters

Is there any way to count characters (spaces included) in a cell to insure
that the characters in a specific cell do not exceed a preset number?
Thanks everyone
--
Howard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Counting characters

Easy way to do it is to use Data -- Validation and choose 'Text Length' as
the type of validation to use. Then you can set min/max/exact length to
allow for the cell.

Another way would be to use another cell to check the length. Say you want
to check A1 for length:
=IF(LEN(A1)<20,"Not 20 characters","Is 20 Characters")


"Howard" wrote:

Is there any way to count characters (spaces included) in a cell to insure
that the characters in a specific cell do not exceed a preset number?
Thanks everyone
--
Howard

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Counting characters

You could use data|validation to limit the number of characters. The user will
get an error message when they finish typing the value and hit enter (or try to
leave the cell).

Another option would be to use an adjacent cell and give a warning message:

=if(len(a1)<10,"","<--Too long. Can't exceed 9 characters")

And format in big, bold, red letters.

The user will be able to enter the value and will will have to react to the
error message (if they want).

Howard wrote:

Is there any way to count characters (spaces included) in a cell to insure
that the characters in a specific cell do not exceed a preset number?
Thanks everyone
--
Howard


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default Counting characters

Thanks, just what I needed.
--
Howard


"JLatham" wrote:

Easy way to do it is to use Data -- Validation and choose 'Text Length' as
the type of validation to use. Then you can set min/max/exact length to
allow for the cell.

Another way would be to use another cell to check the length. Say you want
to check A1 for length:
=IF(LEN(A1)<20,"Not 20 characters","Is 20 Characters")


"Howard" wrote:

Is there any way to count characters (spaces included) in a cell to insure
that the characters in a specific cell do not exceed a preset number?
Thanks everyone
--
Howard

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
Counting Characters in cells Brian Bermingham Excel Discussion (Misc queries) 9 June 24th 09 09:36 AM
Counting characters LiAD Excel Worksheet Functions 5 March 10th 09 02:20 PM
Counting characters within a cell Alco Engineer Excel Worksheet Functions 5 November 4th 08 06:08 PM
Counting Characters Ryan Excel Worksheet Functions 7 January 23rd 07 04:44 PM
Counting characters sdmccabe Excel Discussion (Misc queries) 2 March 27th 06 08:10 PM


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