" Hello World " (with extra spaces before, between, and after words), what is the result of the formula =TRIM(A1)?The TRIM function removes all extra spaces from text except for single spaces between words. So it removes leading, trailing, and multiple spaces between words.
"Hello
World" where
is a line break (non-printable character). What is the result of =CLEAN(A1)?CLEAN removes all non-printable characters such as line breaks, so the text becomes one continuous string without breaks.
CLEAN removes non-printable characters first, then TRIM removes extra spaces. So =TRIM(CLEAN(A1)) is the correct order.
"Hello World" where is a non-breaking space (different from normal space). What does =TRIM(A1) return?TRIM removes only normal spaces (ASCII 32). Non-breaking spaces (ASCII 160) remain unchanged, so the text stays the same.
First CLEAN removes non-printable characters, then SUBSTITUTE replaces non-breaking spaces with normal spaces, and finally TRIM removes extra spaces. This sequence cleans the text fully.
