LXLogicExcel
๐Ÿ”ฅ
0
โญ
0
โ˜…0 XP

Question 1 of 6

A2 has extra spaces around the name. Clean it with =TRIM(A2).
ABCD
1ImportedClean
2 Lee
3Patel
4Ann Marie
5
B2fx
๐Ÿ”ฅ0streak
โญ0 XP today
All Lessons

TRIM Function - Free Excel Practice Online

This free, interactive exercise teaches you TRIM Function in Excel through 6 hands-on steps. Instead of watching a video, you type the real formula into a live spreadsheet grid and get instant feedback on every answer. It is part of the Text Manipulation Functions track and works right in your browser - no Excel install, no download, and no signup.

Practising TRIM Function this way builds the muscle memory that transfers straight to using Excel at work, in interviews, or for certification prep. Work through the steps above, then keep going with the next lesson to build a complete, free Excel practice course.

What you'll practice in this TRIM Function lesson

  1. A2 has extra spaces around the name. Clean it with =TRIM(A2). - TRIM strips the spaces at each end and leaves Lee. The original cell is unchanged โ€” TRIM returns a new value.
  2. A3 has a trailing space. Clean that one too: =TRIM(A3). - Trailing spaces are invisible and they break VLOOKUP and COUNTIF. TRIM removes them.
  3. A4 has two spaces between the words. TRIM collapses those to one: =TRIM(A4). - TRIM leaves a single space between words. Ann  Marie becomes Ann Marie. That is the whole job of the function besides the ends.
  4. Prove the spaces are there. Length of the dirty value: =LEN(A2). - Lee is two leading spaces + Lee (3) + two trailing spaces = 7 characters. LEN counts every space.
  5. Now the length after cleaning: =LEN(TRIM(A2)). - TRIM(A2) is Lee, three characters. The drop from 7 to 3 is how you confirm a cleanup worked before you paste values over the source.
  6. COUNTIF cannot see Lee in a dirty list. Count the clean name: =COUNTIF(B2:B4,TRIM(A2)) โ€” B already holds the trimmed values, so use =COUNTIF(B2:B4,"Lee"). - After TRIM, Lee matches Lee. This is why Remove Duplicates reports 0 hits on messy imports โ€” fix spaces first, then count or delete.

TRIM Function practice - FAQ

How do I practice TRIM Function in Excel?

Open this free LogicExcel exercise and work through 6 interactive steps. You type the real formula into a live spreadsheet grid and get instant feedback on whether it is correct, plus an explanation - no Excel install and no signup needed.

Is the TRIM Function exercise free?

Yes. Every LogicExcel exercise is 100% free with no account required. Your progress saves automatically in your browser.

What will I learn in this TRIM Function lesson?

This lesson covers TRIM Function as part of the Text Manipulation Functions track. You practice the syntax step by step until it becomes muscle memory you can use at work.