Skip to content

TRIM and LEN

Clean stray spaces and measure text length

0 of 3 done · Lesson 16 of 18

Understand

A customer export contains leading spaces, trailing spaces and doubled spaces between words. TRIM cleans those gaps. LEN counts the characters that remain, including intentional spaces inside the text.

=TRIM(text to clean)
=LEN(text to measure)

A worked example

=LEN(B2)
text to clean

B2 is Kea Ltd , so this returns 13

The sheet you are working with

Sheet for TRIM and LEN
Row numberABC
1Customer IDImported nameStatus
2CUS-1042 Kea Ltd Active
3CUS-2075 North Wind Active
4CUS-3184Rimu Co Paused
5CUS-4221 HalcyonActive
6CUS-5360Pounamu GroupPaused
7CUS-6408 Brightsmith Active