Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Liani
 
Posts: n/a
Default Character count and locking?

I would like to set up a formula that does a character count of info in a
cell and then lock that cell so that the info cannot go over 33 characters.
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Character count and locking?

Hi Liani,

You can count characters by this formula: =len(a1)

It is not possible to lock cell with formula, you can do it via VBA
sub.

Regards,
Ivan

  #3   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default Character count and locking?


you can use data validation to restrict data with more than 33
characters.

select the range you want to enter the data in.

go to Data Validation

Settings in Allow (text length) and in Data (less than) and in
Maximum put 33 or whatever length you want.

hope this would be solution of your question.


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=534461

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



All times are GMT +1. The time now is 02:53 PM.

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"