Forum Discussion

agnessg's avatar
agnessg
Copper Contributor
Sep 27, 2019

Limited amount of letters in a cell

I was wandering if there is a function in excel that allows you to limit the amount of letters you can write in one cell. It is for when I lock the sheet so that users can only write in selected cells.

2 Replies

  • Kodipady's avatar
    Kodipady
    Iron Contributor

    you can apply a Data Validation Rule to enforce this. use custom formula something like below

    =LEN(A1)<10

    this will not allow more than 9 characters to be entered in to A1

    • PReagan's avatar
      PReagan
      Bronze Contributor
      Alternatively, you may use Data Validation and select "Allow: Text length". Then fill in "Data:", "Minimum:" and/or "Maximum:" as necessary.

Resources