Office

How to add a character limit to cells in Excel

An Excel sheet isn’t always used to process data. The row and column layout is a useful way to present and manage a large amount of information and Excel’s features make it possible to use a spreadsheet as a data collection tool.

Excel offers some features that allow you to use it as a form that other users can fill in but if you have to enter instructions for filling the form in, into the spreadsheet, it’s going to get messy. 

An easier way to make sure you get the right data is to add limits and restrictions to a cell. Any data or value that falls outside the limit will be rejected.

Character limit for cells in Excel

You can set a character limit for cells in Excel. This limit works so that the value entered is a minimum number of characters long, or it is no longer than a certain number of characters.

It’s useful for when a user must input a phone number, or zip code, or similar.

  1. Open the Excel file you want to add character limits to.
  2. Select the cells/columns/rows that the limit will be added to.
  3. Go to the Data tab.
  4. Click ‘Data Validation’ button on the Data Tools toolbox.
  5. Go to the Settings tab.
  6. Open the ‘Allow’ dropdown and select ‘Text length’.
  7. Open the ‘Data’ dropdown and select a limiting criteria. To limit it to a certain number, select ‘Less than or equal to’.
  8. To set the maximum value, enter a value in the Maximum field.
  9. Click Ok.

Add tooltip for character limit

A user won’t be able to tell if a cell has a character limit so adding a tooltip will help them.

  1. Select the cells/columns/rows with the character limit.
  2. Go to the Data tab.
  3. Click Data Validation.
  4. Select the Input Message tab.
  5. Enable the ‘Show input message when cell is selected’ option.
  6. In the title field, enter a subject for the tooltip.
  7. Enter a message in the ‘Input message’ field.
  8. Click OK.

Add error message

When a user enters a value that does not meet the character limits of the cell, they will see an error. Unfortunately, the error message is generic and doesn’t tell the user why the value wasn’t excepted. You can modify it so the user knows what’s wrong.

  1. Select the cell/column/rows with the character limit.
  2. Go to the Data tab on the ribbon.
  3. Click Data Validation.
  4. Go to the Error Message box.
  5. Enable the ‘Show error alert after invalid data is entered’ option.
  6. Enter a title for the alert in the ‘Title’ field.
  7. Enter a message that tells the user what sort of data to enter in the Error Message field.

Conclusion

You can add an upper, or lower character limit to cells, or enter a precise number of characters that a user must enter in order for the value to be accepted. Go through the various options and add the kind of data limit you need for a cell or column or row.

Похожие статьи

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Проверьте также
Закрыть
Кнопка «Наверх»