How to search a column in google sheets

Watch Video – How to Search in Google Sheets and Highlight Matching Data

If you work with huge datasets in Google Sheets, sometimes, it may get difficult to identify some data points.

For example, if you have a list of students and their marks, it can take some time to find a student name and all his/her marks.

In this tutorial, I will show you how to search in Google Sheets and highlight the matching data (cells/rows).

Something as shown below:

Note that as soon as I enter any text in cell B2 and hit Enter, it searches for that data point in column B and highlight the rows where there is a match.

Now let’s see how to create this is Google Sheets.

  • Just Searching in Google Sheets
    • The Easiest Way to Search in a Google Sheet – A Keyboard Shortcut
    • Use The Find and Replace Tool
  • How to Search in Google Sheets and Highlight the Matching Data
    • How to Search in a Google Spreadsheet and Highlight Cells with the Matching Data
    • How to Search on a Google Spreadsheet and Highlight Rows where there is a Match
    • How to Search on a Google Sheet and Highlight Rows With Partial Match
        • Sumit

Just Searching in Google Sheets

If you use need to find something quickly as a one-off, you can use one of these methods:

The Easiest Way to Search in a Google Sheet – A Keyboard Shortcut

If you just need to find something on your page in Google Sheets or many other programs, all you have to do is:

  1. Press Ctrl+F and a search box will appear
  2. Type in the text you’re looking for

Use The Find and Replace Tool

this can easily find data you know is wrong and replace it without having to rummage through the whole spreadsheet. Here’s what you have to do:

How to search a column in google sheets

  1. Navigate to Edit>Find and replace (or press Ctrl+H)
  2. In the box that pops up, enter the data you want to replace and what you want to replace it with
  3. Click Done

You can use the dropdown box to only search certain sheets or ranges too.

How to Search in Google Sheets and Highlight the Matching Data

There are different ways you can use this technique:

  • Search and Highlight only the cells with the matching data
  • Search and Highlight the entire row where there is a match
  • Search and Highlight cells/rows even if there is a partial match

In the below section, I will each of these cases in detail and show you how to create this in Google Sheets.

How to Search in a Google Spreadsheet and Highlight Cells with the Matching Data

In this section, I will show you how to create something as shown below:

Note that as soon as I enter the country name in cell B1 and hit Enter, it highlights the matching cells in column B.

Here is how to make this searchable Google spreadsheet:

  1. Select the data that you want to get highlighted when a match is found. In this example its B4:B12.
  2. Click on the Format button in the menu.
    How to search a column in google sheets
  3. Click on Conditional Formatting.
    How to search a column in google sheets
  4. In the ‘Conditional formatting rules’ pane that open, click on the ‘Format cells if’ option.
    How to search a column in google sheets
  5. Select the ‘Custom formula is’ option.
    How to search a column in google sheets
  6. In the Value or Format field, enter the formula: =B4=$B$1
    How to search a column in google sheets
  7. Specify the formatting style you want to be applied (in this example, I am going with the default green color).
  8. Click on Done.

Now, whenever you enter any text in cell B1, it will highlight the matching cells in the dataset.

Note that there needs to be an exact match. If the text entered is misspelled, or is partial/incomplete, the cells would not be highlighted.

In the above example, I am entering the data manually. However, if you have a huge dataset, you can create a drop-down list in cell B1. This will allow the user to see all the options in one place and select the required one.

How to Search on a Google Spreadsheet and Highlight Rows where there is a Match

In the above example, we highlighted only the matching cells.

But in a real-world example, you’re more likely to search for a data point and highlight the entire row.

Something like shown below:

Here are the steps you can use to learn how to search on Google Sheets and highlight the entire row in:

  1. Select the entire data set.
  2. Click on the Format button in the menu.
  3. Click on Conditional Formatting.
  4. In the ‘Conditional formatting rules’ pane that opens, click on the ‘Format cells if’ option.
  5. Select the ‘Custom formula is’ option.
  6. In the Value or Format field, enter the formula: =$B4=$B$1
  7. Specify the formatting style you want to be applied (in this example, I am going with the default green color).
  8. Click on Done.

How to Search on a Google Sheet and Highlight Rows With Partial Match

In the above examples, it was necessary that there be an exact match for the cells/rows to get highlighted.

But you may have a situation where you want to get match based on the partial search string.

Something as shown below:

Note that here as soon as I entered ‘abc’ in cell A1 (it doesn’t matter whether it’s lower case or upper case), all the rows in the dataset that have that string get highlighted.

Here is how to search in a Google Sheet with the same method as above:

  1. Select the entire data set.
  2. Click on the Format button in the menu.
  3. Click on Conditional Formatting.
  4. In the ‘Conditional formatting rules’ pane that open, click on the ‘Format cells if’ option.
  5. Select the ‘Custom formula is’ option.
  6. In the Value or Format field, enter the formula: =IF($A$1<>””,ISNUMBER(SEARCH($A$1,$A4)),FALSE)
  7. Specify the formatting style you want to be applied (in this example, I am going with the default green color).
  8. Click on Done.

In case you want the search to be case sensitive (which means that ‘abc’ and ‘ABC’ are different), then use the FIND function instead of the SEARCH function in the above formula. It’s the best method to use when tackling how to find on Google Sheets.

So this is how to search in Google Sheets and highlight matching data (be it cells or rows)

You may also like the following tutorials:

  • Using Query Function in Google Sheets – with Examples.
  • Remove Last Character from a String in Google Sheets
  • Conditional Formatting Based on Another Cell Value in Google Sheets
  • Ultimate Guide to Conditional Formatting in Google Sheets
  • How to Zoom In and Zoom Out in Google Sheets
  • Creating a Heat Map in Google Sheets (Step-by-Step Tutorial)
  • Creating a Dynamic Filter in Excel (extract data as you type)
  • How To Format Phone Numbers In Google Sheets?

How to search a column in google sheets

Sumit

Spreadsheet Expert at Productivity Spot | Website | + posts

Google Sheets and Microsoft Excel Expert.

How do I search a column in sheets?

Search Using the Find Option to Highlight All Matching Cells in the Sheet.
Open the worksheet that has the data..
Use the keyboard shortcut Control + F (for Windows) and Cmd + F (for Mac). This will open a small Find box at the top right part of your sheet..
Enter the string that you want to search in the entire worksheet..

How do you search data in Google Sheets?

Search for data.
In Sheets, open a spreadsheet and click Edit. ... .
Next to Find, enter the text or numbers that you want to find..
Next to Replace with, enter the new data..
Next to Search, choose the sheets that you want to search..
(Optional) To refine your search, select additional options..

Is there a search function in Google Sheets?

You can find and replace words in a document, spreadsheet, or presentation with Google Docs, Sheets, and Slides. You can also search within a file using the keyboard shortcut Ctrl + f (⌘ + f on a Mac).

How do I find a specific cell in Google Sheets?

Now if you want to jump to a specific cell or row/column, simply hit the F5 key. Note: When you enable compatible spreadsheet shortcuts, you may be able to use some of the keyboard shortcuts that are also available in other popular spreadsheet tools such as MS Excel.