Skip to main content
 

How to handle if cell contains a word then put a text in another cell?

Author: Sun Last Modified: 2020-05-08

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:

doc if cell contains a word then equal 8 shot arrow right doc if cell contains a word then equal 9

 

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:

doc if cell contains a word then equal 3

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:
doc if cell contains a word then equal 4

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:
doc if cell contains a word then equal 5

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.
doc if cell contains a word then equal 6

Tip. If you want to have a free trial of the Select Specific Cells function, please go to free download Kutools for Excel first, and then go to apply the operation according above steps.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


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!