Sample Data
Column A contains text values with some containing the word 'apple'. Column B categorizes the items.
| Cell | Value |
|---|---|
| A1 | apple |
| A2 | banana |
| A3 | apple pie |
| A4 | grape |
| B1 | fruit |
| B2 | fruit |
| B3 | dessert |
| B4 | fruit |
Column A contains text values with some containing the word 'apple'. Column B categorizes the items.
| Cell | Value |
|---|---|
| A1 | apple |
| A2 | banana |
| A3 | apple pie |
| A4 | grape |
| B1 | fruit |
| B2 | fruit |
| B3 | dessert |
| B4 | fruit |
=ARRAYFORMULA(SUBSTITUTE(A1:A4, "apple", "orange"))A B 1 | apple | fruit | 2 | banana | fruit | 3 | apple pie | dessert| 4 | grape | fruit | Formula references cells A1 to A4 for substitution.
A B 1 | orange | fruit | 2 | banana | fruit | 3 | orange pie| dessert| 4 | grape | fruit | The formula output replaces 'apple' with 'orange' in column A's text.