0
0
Google Sheetsspreadsheet~5 mins

SUBSTITUTE and REPLACE in Google Sheets - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the SUBSTITUTE function do in Google Sheets?
SUBSTITUTE replaces all or specific occurrences of a text string within another text string with a new text string.
Click to reveal answer
beginner
How does the REPLACE function differ from SUBSTITUTE?
REPLACE changes part of a text string based on position and length, while SUBSTITUTE replaces text based on matching content.
Click to reveal answer
beginner
Syntax of SUBSTITUTE function?
SUBSTITUTE(text, old_text, new_text, [instance_num])<br> - text: original text<br> - old_text: text to replace<br> - new_text: replacement text<br> - instance_num (optional): which occurrence to replace
Click to reveal answer
beginner
Syntax of REPLACE function?
REPLACE(old_text, start_num, num_chars, new_text)<br> - old_text: original text<br> - start_num: position to start replacing<br> - num_chars: number of characters to replace<br> - new_text: replacement text
Click to reveal answer
intermediate
Example: How to replace the 2nd occurrence of "apple" with "orange" in "apple, apple, apple" using SUBSTITUTE?
Use =SUBSTITUTE("apple, apple, apple", "apple", "orange", 2) which results in "apple, orange, apple".
Click to reveal answer
Which function replaces text based on position and length?
ASUBSTITUTE
BREPLACE
CCONCATENATE
DLEFT
What does the optional 4th argument in SUBSTITUTE do?
ASpecifies which occurrence of old_text to replace
BSpecifies the number of characters to replace
CSpecifies the starting position to replace
DSpecifies the new text to add
If you want to replace the first 3 characters in a text, which function and arguments would you use?
ASUBSTITUTE(text, old_text, new_text, 3)
BSUBSTITUTE(text, 1, 3, new_text)
CREPLACE(text, 3, 1, new_text)
DREPLACE(text, 1, 3, new_text)
What will =SUBSTITUTE("banana", "a", "o") return?
Abonono
Bbanana
Cbonana
Dbanano
Which function can replace only the 3rd occurrence of a word?
AREPLACE
BRIGHT
CSUBSTITUTE with instance_num=3
DLEFT
Explain how SUBSTITUTE and REPLACE functions differ and give an example of when to use each.
Think about whether you want to replace by matching text or by position.
You got /4 concepts.
    Describe the arguments needed for SUBSTITUTE and how to replace only the second occurrence of a word.
    Remember the optional 4th argument controls which occurrence to replace.
    You got /3 concepts.