Check the length of a student ID
Count characters in an identifier.
YOUR TASK
Put LEN to work.
Return the number of characters in the student ID in C2 in G2. Letters, digits and hyphens all count as characters.
Give me a hint
LEN takes one text argument and returns its character count.
Show the worked solution
=LEN(C2)LEN counts every character, including hyphens. It returns a number, not the student ID itself.
Try it yourself before opening the solution. A completed task with the solution open is saved as reviewed practice.
What can I use in this checker?
SUM, SUMPRODUCT (matching range dimensions), INDEX (single-cell result), MATCH (exact match with 0), AVERAGE, AVERAGEIF, MEDIAN, MIN, MAX, COUNT, COUNTA, IF, IFERROR, AND, OR, SUMIF, SUMIFS, COUNTIF, COUNTIFS, exact-match VLOOKUP and XLOOKUP, ROUND, LEFT, RIGHT, LEN, TRIM, UPPER, LOWER, CONCAT, arithmetic, comparisons, percentages and absolute cell references. Use the displayed data and double quotes for text. For AND and OR, use comparisons or logical values. Text-cleaning tasks check letter case. This is a focused formula checker; it does not include Excel’s full feature set.
