Office & Google Workspace
Limit a Cell to an Exact Number of Characters in Excel
Use Excel's Data Validation to require an exact character count (for zip codes, IDs, phone numbers, etc.), and add a Stop-style error message to prevent invalid entries.