0
0
Excelspreadsheet~5 mins

SUBSTITUTE and REPLACE in Excel - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the SUBSTITUTE function do in Excel?
SUBSTITUTE replaces specific text in a string with new text. It changes all or selected occurrences of the old text without changing the rest of the 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, not by matching text. It replaces characters starting at a specific position with new text.
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: text to insert
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)<br>This changes only the 2nd "apple" to "orange" resulting 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 the new text
BSpecifies the number of characters to replace
CSpecifies which occurrence of old text to replace
DSpecifies the start position
If you want to replace the first 3 characters in a string, which function and arguments would you use?
AREPLACE(text, 1, 3, new_text)
BSUBSTITUTE(text, old_text, new_text, 1)
CLEFT(text, 3)
DRIGHT(text, 3)
What will =SUBSTITUTE("banana", "a", "o") return?
Abonono
Bbanana
Cbanano
Dbonana
Which function can replace only the 3rd occurrence of a word in a text?
AREPLACE
BLEFT
CRIGHT
DSUBSTITUTE with instance_num=3
Explain how SUBSTITUTE and REPLACE functions differ in Excel and give an example of when to use each.
Think about whether you want to replace by text match or by position.
You got /4 concepts.
    Describe the syntax and purpose of the optional argument in SUBSTITUTE.
    This argument controls how many replacements happen.
    You got /3 concepts.