How to handle if cell contains a word then put a text in another cell?
Here is a list of product ID, and now I want to find if the cell contains a string “KTE”, and then put the text “TRUE” into its adjacent cell as below screenshot shown. Have you any quick ways to solve it? In this article, I am talking about the tricks on finding if a cell contains a word and then putting a text into the adjacent cell.

If a cell contains a word then another cell equals a specific text
Here is a simple formula that can help you to quickly check if a cell contains a word, and then put a text in its next cell.
Select the cell you want to put the text, and type this formula =IF(ISNUMBER(SEARCH("KTE",A2)),"True","") and then drag auto fill handle down to the cells you want to apply this formula. See screenshot:
![]() |
![]() |
![]() |
In the formula, A2 is the cell you want to check if contains a specific word, and KTE is the word you want to check, True is the text you want to display in another cell. You can change these references as you need.
If a cell contains a word then select or highlight
If you want to check if a cell contains a specific word and then select or highlight it, you can apply the Select Specific Cells feature of Kutools for Excel, which can quickly handle this job.
Kutools for Excel, with more than 300 handy functions, makes your jobs easier. | ||
After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)
1. Select the range you want to check if the cell contains a specific word, and click Kutools > Select > Select Specific Cells. See screenshot:
2. Then in the popping dialog, check Cell option, and select Contains from the first drop down list, then type the word you want to check into the next textbox. See screenshot:
3. Click Ok, a dialog pops out to remind you how may cells contains the word you want to find, and click OK to close the dialog. See screenshot:
4. Then the cells containing the specified word have been selected, if you want to highlight them, go to Home > Fill Color to choose one fill color to outstanding them.
Demo
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
