ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I limit a cell to 2 characters? (https://www.excelbanter.com/excel-discussion-misc-queries/39776-can-i-limit-cell-2-characters.html)

Frankc

Can I limit a cell to 2 characters?
 
Is there a way in Excel to limit the number of characters in a cell?

Thanks
Frank

David McRitchie

By checking the length of the cell
=LEN(A1)=2
in your custom validation.

Look for Data Validation on Debra Dalgleish's site.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Frankc" wrote in message ...
Is there a way in Excel to limit the number of characters in a cell?

Thanks
Frank




ellmcg

You can do it directly, using Data -- Validation, and choosing text length.

"David McRitchie" wrote:

By checking the length of the cell
=LEN(A1)=2
in your custom validation.

Look for Data Validation on Debra Dalgleish's site.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Frankc" wrote in message ...
Is there a way in Excel to limit the number of characters in a cell?

Thanks
Frank






All times are GMT +1. The time now is 03:57 PM.

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