0
0
Excelspreadsheet~20 mins

Find and replace in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Find and Replace Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🎯 Scenario
intermediate
2:00remaining
Replace all occurrences of 'apple' with 'orange' in a column

You have a list of fruits in column A from A1 to A10. You want to replace every cell that contains the word 'apple' with 'orange'. Which method will do this correctly?

ASelect column A, press Ctrl+H, type 'apple' in Find what and 'orange' in Replace with, then Replace All.
BSelect column A, press Ctrl+H, type 'orange' in Find what and 'apple' in Replace with, then Replace All.
CUse Find (Ctrl+F), type 'apple', then Replace All with 'orange'.
DSelect column A, press Ctrl+F, type 'orange', then Replace All with 'apple'.
Attempts:
2 left
💡 Hint

Remember, 'Find what' is the text you want to change, and 'Replace with' is the new text.

📊 Formula Result
intermediate
2:00remaining
Result of SUBSTITUTE function replacing text

What is the result of this formula in cell B1 if A1 contains 'banana apple banana'?

=SUBSTITUTE(A1, "banana", "orange", 2)
Aorange apple banana
Bbanana apple orange
Corange apple orange
Dbanana apple banana
Attempts:
2 left
💡 Hint

The 4th argument in SUBSTITUTE tells which occurrence to replace.

Function Choice
advanced
2:00remaining
Choose the function to replace text ignoring case

You want to replace all occurrences of 'cat' with 'dog' in a text string, but the text may have 'Cat', 'CAT', or 'cat'. Which function will replace all regardless of case?

ASUBSTITUTE(text, "cat", "dog")
BREPLACE(text, FIND("cat", text), 3, "dog")
CUse a combination of LOWER and SUBSTITUTE to replace 'cat' in lowercase text
DUse Find and Replace tool with Match case unchecked
Attempts:
2 left
💡 Hint

Excel's SUBSTITUTE is case-sensitive.

data_analysis
advanced
2:00remaining
Count how many cells contain replaced text

You replaced 'old' with 'new' in a range B1:B20. Now you want to count how many cells contain the word 'new'. Which formula gives the correct count?

A=COUNTIF(B1:B20, "=new")
B=COUNTIF(B1:B20, "new")
C=COUNTIF(B1:B20, "*new*")
D=COUNT(B1:B20)
Attempts:
2 left
💡 Hint

Use wildcards to find text inside cells.

📊 Formula Result
expert
3:00remaining
Output of nested SUBSTITUTE replacing multiple words

Given cell A1 contains 'red blue green blue red', what is the result of this formula?

=SUBSTITUTE(SUBSTITUTE(A1, "blue", "yellow"), "red", "orange")
Aorange yellow green yellow orange
Bred yellow green yellow red
Corange blue green blue orange
Dyellow orange green orange yellow
Attempts:
2 left
💡 Hint

SUBSTITUTE inside another SUBSTITUTE replaces text step by step.