In this article we will learn how to specify text in another cell, if a cell contains certain text in Microsoft Excel. We will use the combination of IFERROR, IF and SEARCH function.
Let’s take an example and understand:-
We have data in the range A2:A7, which contains some words. Now lets put this condition in column B, if the text in column A contains “tain” the output in the range B2:B7 should be “tain” else “no”.
Lets follow the below mentioned steps to get the output -
- Select the cell B2, and write the formula in the cell.
- Press Enter on the keyboard.
- The function will return “tain”, because cell A2 containsthe word“tain”. Copy the formula by pressing the key “CTRL+C” on your keyboard and paste it into the range B3:B7 by pressing the key “CTRL+V”..
For more example click here
If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at firstname.lastname@example.org