Complete the formula to replace all occurrences of "apple" with "orange" in cell A1.
=SUBSTITUTE(A1, [1], "orange")
The SUBSTITUTE function replaces all occurrences of the text given in the second argument. Here, we want to replace "apple" with "orange".
Complete the formula to replace only the first occurrence of "cat" with "dog" in cell B2.
=SUBSTITUTE(B2, "cat", [1], 1)
The third argument is the replacement text. To replace the first occurrence only, we specify 1 as the fourth argument.
Fix the error in the formula to replace "blue" with "red" in cell C3.
=SUBSTITUTE(C3, [1], "red")
The text to find must be a string inside quotes. Without quotes, Excel treats it as a name or reference, causing an error.
Fill both blanks to replace all occurrences of "cat" with "dog" in cell D4 and make the result uppercase.
=UPPER(SUBSTITUTE(D4, [1], [2]))
SUBSTITUTE replaces "cat" with "dog". UPPER converts the whole result to uppercase letters.
Fill all three blanks to replace "2023" with "2024" in cell E5, then trim extra spaces, and finally convert to proper case.
=PROPER(TRIM(SUBSTITUTE(SUBSTITUTE(E5, [1], [2]), [3], " ")))
SUBSTITUTE replaces "2023" with "2024". TRIM removes extra spaces (like double spaces " "). PROPER capitalizes the first letter of each word.