Compare SUBSTITUTE vs TRIM
2 vsCompare SUBSTITUTE vs TRIM side-by-side — differences, popularity and recommendation
Presets:
VLOOKUP vs XLOOKUP
SUM vs SUMIFS
INDEX vs MATCH vs XLOOKUP
IF vs IFS vs SWITCH
COUNT vs COUNTA vs COUNTIF
AVERAGE vs AVERAGEIF vs AVERAGEIFS
MAX vs LARGE vs MIN
TEXT vs TEXTJOIN vs CONCAT
FILTER vs SORT vs UNIQUE
ROUND vs ROUNDUP vs ROUNDDOWN
All functions
Pick at least 2 functions
Feature
Category
Text text
Text text
Popularity
60 / 100
80 / 100
Views
◉ 16 views
◉ 9 views
Output
Text
Text
Version
All versions
All versions
Volatile
No
No
Dynamic Array
No
No
Description
Substitutes new_text for old_text in a text string. Use SUBSTITUTE when you want to replace specific text in a text string; use REPLACE when you want to replace any text that occurs in a specific location in a text string.
Removes all spaces from text except for single spaces between words. Use TRIM on text that you have received from another application that may have irregular spacing.
Syntax
=SUBSTITUTE(text, old_text, new_text, [instance_num])=TRIM(text)Arguments
4 Arguments
text
old_text
new_text
instance_num (Optional)
2 Arguments
string
cell
Examples
3
4
Tips
0
1
★ Recommendation — Winner: =TRIM()
=TRIM() is recommended based on higher popularity, newer version and Dynamic Array support.