How to display only rows with certain text in Excel?

In Excel, the Filter function is used widely in our daily work. And in this case, I introduce how to filter rows with certain text in Excel. For instance, here are two columns, and I want to show the rows which contain “KTE” in column B only as below screenshot shown.
doc display rows with certain text 1

Show rows contain a specific string by Filter function

Show rows contains a specific string by Kutools for Excelgood idea3


Show rows contain a specific string by Filter function

To display rows that contain a string, you can do as below:

1. Select the ranges you use, and click Data > Filter to enable the Filter function.
doc display rows with certain text 2

2. Then click at the filter icon on the column you want to filter on, and select Text Filters > Contains. See screenshot:
doc display rows with certain text 3

3. In the Custom AutoFilter dialog, you can specify the text you want to filter based on. See screenshot:
doc display rows with certain text 4

4. Click OK. Then only the rows which contain the text string you specified are displayed.


Show rows contains a specific string by Kutools for Excel

If you usually use the same filter criteria across workbooks, you can apply Kutools for Excel’s Super Filter function, it can save the filter settings for reusing easily with only several clicks, without reconfiguring it repeatedly.

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 data you want to user, click Kutools Plus > Super Filter. See screenshot:
doc display rows with certain text 5

2. Then in the Super Filter pane, check Specified to fix the filtering range, and specify the criteria as you need in the pane. See screenshot:
doc kutools super filter 1

For more filtering details, click this.

3. Click Filter to filter the range.
doc kutools super filter 3

4. Then click Save current filter settings button doc save, then a dialog pops out for you to give this scenario a name, and specify the scenario applying range.
doc kutools super filter 4

5. Click OK, and you can open the scenario by clicking the drop-down menu > Open saved filter settings scenario to select the current saved scenario, or clicking Manage filter settings scenarios button doc manager, select the specified filter setting you want, and then click Open to enable the filter settings next time.
doc kutools super filter 5
doc kutools super filter 6

Tip. If you want to have a free trial of the Super Filter function, please go to free try Kutools for Excel first, and then go to apply the operation according above steps.


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.
kte tab 201905

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!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Leyn · 4 months ago
    Thanks for helpful article.
    A template can be created to hide cells outside the selected area (cells) with VBA codes :
    i = Selection.Rows(1).Row
    a = i + Selection.Rows.Count - 1
    s = Selection.Columns(1).Column
    t = s + Selection.Columns.Count - 1
    Application.ScreenUpdating = False
    On Error Resume Next
    Range(Cells(1, 1), Cells(i - 1, 1)).EntireRow.Hidden = True
    Range(Cells(a + 1, 1), Cells(Rows.Count, 1)).EntireRow.Hidden = True

    Range(Cells(1, 1), Cells(1, s - 1)).EntireColumn.Hidden = True
    Range(Cells(1, t + 1), Cells(1, Columns.Count)).EntireColumn.Hidden = True

    Sample file and details : https://www.technologicaltipstools.online/2015/09/excel-demonstrate-only-selected-cells.html