## How to return value in another cell if a cell contains certain text in Excel?

As the example shown below, when cell E6 contains the value “Yes”, cell F6 will be automatically populated with the value “approve”. If you change “Yes” to “No” or “Neutrality” in E6, the value in F6 will be changed to “Deny” or “Reconsider” immediately. How can you do to achieve it? This article collects some useful methods to help you easily solve it.

**Method A:**Return value in another cell if a cell contains certain text with formula

**Method B:**Return values in another cell if a cell contains different texts with formula

**Method C:**Several clicks to easily return values in another cell if a cell contains different texts

### Return value in another cell if a cell contains certain text with formula

For returning value in another cell if a cell contains only a specific text, please try the following formula. For example, if B5 contains “Yes”, then return “Approve” in D5, otherwise, return “No qualify”. Please do as follows.

Select D5 and copy below formula into it and press the **Enter** key. See screenshot:

Formula: **Return value in another cell if a cell contains certain text**

**=IF(ISNUMBER(SEARCH("Yes",D5)),"Approve","No qualify")**

**Notes:**

1. In the formula, “Yes”, D5, “approve” and “No qualify” indicate that if cell B5 contains text “Yes”, the specified cell will be populated with text “approve”, otherwise, it will be filled with “No qualify”. You can change them based on your needs.

2. For returning value from another cells (such as K8 and K9) based on a specified cell value, please use this formula:

**=IF(ISNUMBER(SEARCH("Yes",D5)),K8,K9)**

Easily select entire rows or entire rows in the selection based on cell value in a certain column:

The **Select Specific Cells** utility of **Kutools for Excel **can help you quickly select entire rows or entire rows in the selection based on specific cell value in a certain column in Excel. *Download the full feature 60-day free trail of Kutools for Excel now!*

### Return values in another cell if a cell contains different texts with formula

This section is going to show you the formula for returning values in another cell if a cell contains different text in Excel.

1. You need to create a table with the specific values and return values that located separately in two columns. See screenshot:

2. Select a blank cell for returning the value, type the below formula into it and press the **Enter** key to get the result. See screenshot:

Formula: **Return values in another cell if a cell contains different texts**

**=VLOOKUP(E6,B5:C7,2,FALSE)**

**Notes:**

In the formula, E6 is the cell contains the specific value you will return value based on, B5:C7 is the column range containing the specific values and the return values, the 2 number means that the return values locating on the second column in the table range.

From now on, when changing the value in E6 to a specific one, its corresponding value will be returned in F6 immediately.

### Easily return values in another cell if a cell contains different texts

Actually, you can solve the above problem by an easier way. The **Look for a value in list** utility of **Kutools for Excel** can help you to achieve it with only several clicks without remembering formula.

1. The same as the above method, you also need to create a table with the specific values and return values that locate separately in two columns.

2. Select a blank cell to output the result (here I select F6), and then click **Kutools** > **Formula Helper** > **Formula Helper**. See screenshot:

3. In the **Formula Helper** dialog box, please configure as follows:

- 3.1 In the
**Choose a formula**box, find and select**Look for a value in list**;

**Tips**: You can check the**Filter**box, enter certain word into the text box to filter the formula quickly. - 3.2 In the
**Table_array**box, select the table without headers you have created in step 1; - 3.2 In the
**Lookup_value**box, select the cell contains the specific value you will return value based on; - 3.3 In the
**Column**box, specify the column you will return the matched value from. Or you can enter the column number into the textbox directly as you need. - 3.4 Click the
**OK**button. See screenshot:

From now on, when changing the value in E6 to a specific one, its corresponding value will be returned in F6 immediately. See result as below:

If you want to have a free trial (30-day) of this utility, **please click to download it**, and then go to apply the operation according above steps.

**Kutools for Excel**can help you to deal with 80% Excel puzzles and improve 80% work efficiency, give you more time to take care of family and enjoy life.