Skip to main contentSkip to solution

Which function is used to remove spaces before and after the text?

Solution

✅ Correct Option: 4

The TRIM function is used to remove spaces before and after the text.

The TRIM function removes all leading spaces (spaces before text) and trailing spaces (spaces after text) from a text string. In most spreadsheet applications, it also reduces multiple spaces between words to a single space.

Example:

If cell A1 contains: " Hello World " (with spaces before and after)

Using =TRIM(A1) will return: "Hello World" (spaces removed)


The other options serve different purposes:

  • DUPLICATE: Creates copies of data
  • REMOVE: Not a standard function for removing spaces
  • DELETE: Used to delete cells or data entirely, not for text manipulation

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question