ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Limit to 50 char only (https://www.excelbanter.com/excel-programming/293864-limit-50-char-only.html)

singkit

Limit to 50 char only
 
Help!
Is there a way we can limit the column to 50 character
only and it will not accept data exceeding from the limit
you set.

Thanks.

Frank Kabel

Limit to 50 char only
 
Hi
try the following:
- select the cell (lets say A1)
- goto 'Data - Validation' and choose 'Custom'
- enter the formula
=LEN(A1)<=50

Note: this won't prevent copying longer data into this cell


--
Regards
Frank Kabel
Frankfurt, Germany


singkit wrote:
Help!
Is there a way we can limit the column to 50 character
only and it will not accept data exceeding from the limit
you set.

Thanks.


Gord Dibben

Limit to 50 char only
 
Or, more simply maybe....

DataValidationAllow "Text Length" less than 51

Gord Dibben Excel MVP

On Thu, 1 Apr 2004 23:57:56 +0200, "Frank Kabel"
wrote:

Hi
try the following:
- select the cell (lets say A1)
- goto 'Data - Validation' and choose 'Custom'
- enter the formula
=LEN(A1)<=50

Note: this won't prevent copying longer data into this cell




All times are GMT +1. The time now is 01:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com