1
Check a Username's Length
Free
A1 holds a username. Write a formula in A2 that returns how many characters it has using LEN.
Show the solution
Use =LEN(A1).
Right — LEN counts every character in the string, including numbers and symbols.
Expected result in A2: 8
Try it in the live spreadsheet →
2
Validate a Password Length Requirement
Free
A1 holds a password. Write a formula in A2 that returns TRUE if it has at least 8 characters, using LEN.
Show the solution
Use =LEN(A1)>=8.
Good — wrapping LEN in a comparison is the standard way to validate minimum length.
Expected result in A2: true
Try it in the live spreadsheet →
3
Count Characters in a Product Code
Free
A1 holds a product code. Write a formula in A2 that returns its character length using LEN.
Show the solution
Use =LEN(A1).
Right — LEN works the same on codes with letters, numbers, and dashes.
Expected result in A2: 9
Try it in the live spreadsheet →
4
Flag Overly Long Comments
A1 holds a comment string. Write a formula in A2 that returns TRUE if it's over 100 characters, using LEN.
| A |
|---|
| 1 | This is a short comment. |
|---|
| 2 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
5
Count Digits Entered for a Phone Field
A1 holds a phone number as text. Write a formula in A2 that returns its length using LEN, to check for the expected 10 digits.
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
6
Check for an Empty Cell Using LEN
A1 might be blank. Write a formula in A2 that returns TRUE if A1 has zero-length content, using LEN.
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
7
Count Characters in a Title
A1 holds an article title. Write a formula in A2 that returns its length using LEN.
| A |
|---|
| 1 | How to Learn Excel Fast |
|---|
| 2 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
8
Validate a Fixed-Length Code
A1 holds a code that should be exactly 6 characters. Write a formula in A2 that returns TRUE if it is exactly 6 characters, using LEN.
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
9
Count Characters Remaining for a Tweet-Style Limit
A1 holds a message, and the limit is 280 characters. Write a formula in A2 that returns how many characters remain using LEN.
| A |
|---|
| 1 | Just shipped a new feature! |
|---|
| 2 | ? |
|---|
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →
10
Check a Tag's Character Length
A1 holds a hashtag-style tag. Write a formula in A2 that returns its length using LEN.
Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).
Try it in the live spreadsheet →