In cell B5, “Sebastian” is 9 characters, so the result is 3.

For example, =REPT(“x”,5) returns “xxxxx”.

LEN will also count characters in numbers, but number formatting is not included.

Excel formula: Conditional message with REPT function

Excel REPT function

Excel LEN function