Which function is used to remove spaces before and after the text?
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
Related questions:
2025: 27 May Shift 2
2026: 23 May Shift 2
2026: 20 May Shift 1
2025: 30 May Shift 1