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?
Remember, 'Find what' is the text you want to change, and 'Replace with' is the new text.
Option A correctly finds 'apple' and replaces it with 'orange'. Option A is incorrect because Find (Ctrl+F) does not have a Replace All function; you need to use Replace (Ctrl+H). Option A swaps the find and replace texts. Option A searches for 'orange' instead of 'apple'.
What is the result of this formula in cell B1 if A1 contains 'banana apple banana'?
=SUBSTITUTE(A1, "banana", "orange", 2)
The 4th argument in SUBSTITUTE tells which occurrence to replace.
The formula replaces only the 2nd occurrence of 'banana' with 'orange'. The first 'banana' stays the same.
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?
Excel's SUBSTITUTE is case-sensitive.
SUBSTITUTE is case-sensitive, so it won't replace 'Cat' or 'CAT'. REPLACE with FIND is also case-sensitive. Using LOWER changes text but loses original case. The Find and Replace tool with Match case off replaces all case variations.
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?
Use wildcards to find text inside cells.
Option C counts cells containing 'new' anywhere. Option C counts only cells exactly equal to 'new'. Option C is invalid syntax. Option C counts numeric cells only.
Given cell A1 contains 'red blue green blue red', what is the result of this formula?
=SUBSTITUTE(SUBSTITUTE(A1, "blue", "yellow"), "red", "orange")
SUBSTITUTE inside another SUBSTITUTE replaces text step by step.
The inner SUBSTITUTE replaces 'blue' with 'yellow'. Then the outer SUBSTITUTE replaces 'red' with 'orange'. So all 'blue' become 'yellow' and all 'red' become 'orange'.