
For our example, the cell we want to check is A2, the text we’re looking for is “ EXAMPLE ”, and the return value will be Yes.Select the output cell, and use the following formula: =IF(EXACT(cell,"case_sensitive_text"), "value_to_return", "").This version is case-sensitive, meaning that only cells with an exact match will return the specified value. To find a cell that contains specific text, use the formula below. If cell contains specific text, then return a value (case-sensitive) Because the A2 cell does consist of the text “ example ”, the formula will return “ Yes ” into the output cell.Ĥ.In this scenario, you’d change the formula to =IF(A2="example", "Yes", ""). For our example, the cell we want to check is A2, the text we’re looking for is “ example ”, and the return value will be Yes.Select the output cell, and use the following formula: =IF(cell="text", value_to_return, "").If cell contains specific text, then return a value Because the D2 cell does contain a number and not text, the formula will return “ Yes ” into the output cell.ģ.In this scenario, you’d change the formula to =IF(ISNUMBER(D2), "Yes", ""). For our example, the cell we want to check is D2, and the return value will be Yes.To check if a cell contains a number or date, select the output cell, and use the following formula: =IF(ISNUMBER(cell), value_to_return, "").Because the A2 cell does contain text and not a number or date, the formula will return “ Yes ” into the output cell.In this scenario, you’d change the formula to =IF(ISTEXT(A2), "Yes", "").


If you’re using a different version or platform, some steps may vary.
#MULTIPLE IF THEN FORMULA EXCEL WINDOWS#
The guides below were written using the latest Microsoft Excel 2019 for Windows 10. Using “if cell contains” formulas in Excel
