How to limit characters length in a cell in Excel?
Sometimes you may want to limit how many characters a user can input to a cell. For example, you want to limit up to 10 characters can be inputted in a cell. This tutorial will shows you the details to limit characters in cell in Excel.
Recommended Productivity Tools
1. Select the range that you will limit date entries with specify character length.
2. Click the Data validation in the Data Tools group under Data tab.
3. In the Data Validation dialog box, select the Text Length item from the Allow: drop down box. See the following screen shot:
4. In the Data: drop down box, you will get a lot of choices and select one, see the following screen shot:
(1) If you want that others are only able to entry exact number of characters, says 10 characters, select the equal to item.
(2) If you want that the number of inputted character is no more than 10, select the less than item.
(3) If you want that the number of inputted character is no less than 10, select the greater than item.
4. Entry exact number that you want to limit in Maximum/Minimum/Length box according to your needs.
5. Click OK.
Now users can only enter text with limited number of characters in selected ranges.
The Data Validation allows us to set input message for text length limitation besides selected cell as below screenshot shown:
1. In the Data Validation dialog box, switch to the Input Message tab.
2. Check the Show input message when cell is selected option.
3. Entry the message title and message content.
4. Click OK.
Now go back to the worksheet, and click one cell in selected range with text length limitation, it displays a tip with the message title and content. See the following screen shot:
Another alternative way to tell user the cell is limited by text length is to set an error alter. The error alert will be shown after you entry invalid data. See screenshot:
1. In the Data Validation dialog box, switch to the Error Alert dialog box.
2. Check the Show error alert after invalid data in entered option.
3. Select the Warning item from the Style: drop down box.
4. Input the alert title and alert message.
5. Click OK.
Now if the text you entered in a cell is invalid, for example it contains more than 10 characters, a warning dialog box will pop up with preset alert title and message. See the following screen shot:
Recommended Productivity Tools
Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.
Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!
300 New Features for Excel, Make Excel Much Easy and Powerful:
- Merge Cell/Rows/Columns without Losing Data.
- Combine and Consolidate Multiple Sheets and Workbooks.
- Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
- Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
- More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 2 years agoI am finding a way to restrict user to entering too many Korean and English characters in excel file. As Korean characters are in double bytes and English characters are in single bytes, it seems impossible for me to use data validation. Is there any way I can try to combine both in data validation so that user doesn't enter more than 25 bytes?
To post as a guest, your comment is unpublished.· 3 years agoI have two condition.
1 - If Column B1 = A Set Text Length = 6
2 - If Column B1 = B Set Text Length = 13
Please Guide Me!
To post as a guest, your comment is unpublished.· 3 years agothanks so much for the limiting of unputs. It helps a lot!
To post as a guest, your comment is unpublished.· 3 years agoThank you, very helpful!
To post as a guest, your comment is unpublished.· 3 years agoi created a form with multiple rows that will be interactive and filled in by my staff. The problem is they are typing everything in one row creating an extremly long row, when there are still several unused rows below.
How can I put a limit on the characters in each row? Is there a way in excel for the data to move automatically to the new row, after the first row exceeds its character limit? Please help.