Skip to main content

 How to conditional formatting if the cell contains partial text in Excel?

Is it possible for us to highlight the cells which contain partial text within the cell? For example, I want to search for the cells which contain the text “sheet” and then highlight them as following screenshot shown. This article, I will talk about some quick tricks to deal with this task.

Highlight the cells which contain partial text by using Conditional Formatting

Highlight the cells which contain partial text by using Kutools for Excel


Highlight the cells which contain partial text by using Conditional Formatting

In fact, the Conditional Formatting in Excel can help you to highlight the cells if contain partial text as quickly as you need. Please do as follows:

1. Select the text list that you want to highlight the cells which contain partial text, and then click Home > Conditional Formatting > New Rule, see screenshot:

2. In the New Formatting Rule dialog box, click Use a formula to determine which cells to format option in the Select a Rule Type list box, and then enter this formula: =search(“sheet”,A2) into the Format values where this formula is true text box, see screenshot:

Note: In the formula, “sheet” is partial text which you want to search cells based on, A2 is the first cells within the selected range of cells.

3. And then click Format button, in the popped out Format Cells dialog box, click Fill tab, and then choose one color to highlight the specific cells you need. See screenshot:

4. Then click OK > OK to close the dialog boxes, and then cells which contain the specific partial text have been highlighted at once, see screenshot:


Highlight the cells which contain partial text by using Kutools for Excel

If you have Kutools for Excel, with its useful Select Specific Cells feature, you can quickly select the cells if contain partial text, and then shade them with a background color as you need.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. 

After installing Kutools for Excel, please do as this:

1. Select the cells which you want to use, and then click Kutools > Select > Select Specific Cells, see screenshot:

2. In the Select Specific Cells dialog box, select Cell from the Selection type, and then choose Contains in the Specific type drop down list, and enter the partial text “sheet” beside the text box, see screenshot:

3. Then click Ok, and all cells which contains the partial text “sheet” have been selected at once, and then you can go to the Home tab to choose one color for highlighting the result, see screenshot:

Click Download Kutools for Excel and free trial Now!


Demo: Highlight the cells which contain partial text by using Kutools for Excel

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

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...

Description


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!
Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This works.  It seems that some formulas offered by some experts don't work. I don't have any idea why. I have copied them (precisely) and edited my own data to match the formulas with mixed results.  I passed the Excel Expert test but still have to reflect to these pages frequently for support (as that was some time ago).  Conditional formatting is written differently than spreadsheet formulas... 
This comment was minimized by the moderator on the site
Thanks for that! Writing those formulas for conditional formating quite tricky.
This comment was minimized by the moderator on the site
Instead of "Sheet" I want to use Cell Reference as A2. How Can I do. Please guide me.
This comment was minimized by the moderator on the site
Hi, Biplab,
If you want to use a cell reference to replace the specific value, first, you should give the cell a range name, for example, give the cell A2 a range name-Text, and then use the below formula into the conditional formatting:

=SEARCH(Text,E2)

Then, you can put any text value in A2, and the conditional formatting rule will change based on the specific data in cell A2.

Please try it, thank you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations