• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Excel Tutorials by Y. Acosta

Excel Tutorials + Tips

  • Excel Tutorials
  • Etsy Store
  • Other Resources
  • About Me
    • About Me
    • Contact Me
    • FREE Printable List of Top Excel Keyboard Shortcuts
  • FREE pdf of Top Excel Shortcuts!

How to Set Character Limit in Excel Cells (+ video tutorial)

❤ Support Free Excel Training by Sharing -

We may be compensated for your purchase of any of the products featured on this page – it helps us keep the lights on :)

There may be times when you want to limit how many characters can be entered in a cell or group of cells in Excel. Setting a limit on the number of characters that can be entered in some cells can help reduce inputting mistakes.

For example, if you need users to enter addresses, your spreadsheet may have a column for a 2 number U.S. state abbreviation. In this case, you may want to limit the characters entered in these cells to only 2.

Let’s pretend you need to limit the number of characters entered in a column to 2 characters. Here’s how you can set the character limits:

Use Data Validation to Set Character Limit in Excel

Click to Watch: How to Set Character Limit in Excel – Tutorial

You’ll find options for setting character limits in Excel cells in the Data tab of the Excel Ribbon, in the Data Tools section, in Data Validation.

To start, select the cell(s) for which you want to restrict the number of characters entered. This can be a range or an entire column or row.

Then, in the Data tab, in the Data Tools section, select Data Validation.

Excel Ribbon: Data Tab / Data Section / Data Validation
Excel Ribbon: Data Tab / Data Section / Data Validation

This will open the Data Validation pop-up window. Here is where you’ll set the limits for what can be typed in the cells you have selected.

Excel Data Validation Window
Excel Data Validation Window

Under Allow, select Text Length.

NOTE: the “Text Length” label can be a bit misleading because it can be used to restrict more than just text. It restricts the number of any character entered, meaning that it includes spaces, numbers, letters and symbols in its count.

Excel Data Validation Window / Allow option
Excel Data Validation Window / Allow option

Under Data, select how you’d like to restrict the character length. The best option for this example would be “Equal to,” but “Less than or equal to” could work too. You’ll have to decide what works best for your project.

Excel Data Validation Window / Data field option
Excel Data Validation Window / Data field option

In Length, type the number of characters for your limit. In our U.S. state abbreviation example, this would be 2.

Excel Data Validation Window / Length field option
Excel Data Validation Window / Length field option

These settings will limit the user to entering 2 characters in these cells. If they try to enter a different amount, they’ll receive an error message and will need to try again.

Default"Stop" Error Message in Excel Data Validation
Default “Stop” Error Message in Excel Data Validation

NEXT: Data Validation Error Messages in Excel (tutorial)


Want to learn more about Data Validation? Here’s how you can apply multiple Data Validation rules to the same cells.



How to Set Character Limit in Excel Cells (Pin for Pinterest)

Related Articles:

  • Prevent Duplicate Entries in Excel (featured image)
    Prevent Duplicate Entries in Excel (+…
  • Apply Multiple Data Validation Rules in Excel (feat. image, thumbnail)
    3 Steps - Apply Multiple Data Validation…
  • Data Validation Error Alerts image
    Data Validation Error Alert Messages in…

❤ Support Free Excel Training by Sharing -

blank

About Y. Acosta

Yil's (pronounced like "Jill") passion for Excel spreadsheets can be traced back to her days in marketing, where she spent significant time working on analytics. As a content creator, she now specializes in Excel spreadsheet tutorials. Make sure to visit the About page to learn more.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow us:

Latest Tutorial:

Featured image for How to Use Find & Replace to Remove Wildcard Characters in Excel article

Click Here for More Excel Tutorials!!!

Get Your FREE pdf of Top Excel Keyboard Shortcuts!

* indicates required

blank

Image-button for Invoice Template for Etsy

Copyright © 2025

  • Home
  • Excel Tutorials
  • Resources
  • About Me
  • Privacy Policy & Terms of Use
  • Disclaimer
  • Advertiser Disclosure
  • Contact Me
  • FREE Printable List of Top Excel Keyboard Shortcuts
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
SettingsAccept
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT