The quickest way to filter data by color in Google Sheets.

Color-coded data filtering in Google Sheets is a useful feature that makes it easy to manage and extract information from spreadsheets. Using colors to categorize data not only helps you track information visually but also saves time and improves work efficiency.

Although Google Sheets doesn't directly support color filtering, you can still filter data by color in two ways: using a code snippet or a Google Sheets add-on.

 

HOW TO FILTER DATA BY COLOR ON GOOGLE SHEETS

We will use the code to convert the cell color to hexadecimal code, then use Conditional Formatting to filter the color as desired.

Step 1: Open the Google Sheets spreadsheet you want to filter.

Step 2: Select Tools from the toolbar, then select Script Editor .

images 1 of The quickest way to filter data by color in Google Sheets.
Images 1 of The quickest way to filter data by color in Google Sheets.

Step 3: Select File and then select New to create a new character encoding table.

images 2 of The quickest way to filter data by color in Google Sheets.
Images 2 of The quickest way to filter data by color in Google Sheets.

Step 4: Type in:

' function getHex(input) {

return SpreadsheetApp.getActiveSpreadsheet().getRange(input).getBackgrounds();

}'.

images 3 of The quickest way to filter data by color in Google Sheets.
Images 3 of The quickest way to filter data by color in Google Sheets.

Step 5:  Return to the spreadsheet and enter the formula =getHex("B7:B11") into cell F7.

This formula will display the color codes of cells B7 through B11.

images 4 of The quickest way to filter data by color in Google Sheets.
Images 4 of The quickest way to filter data by color in Google Sheets.

Step 6: After entering the formula, press Enter . The cell colors will be displayed as hexadecimal codes.

images 5 of The quickest way to filter data by color in Google Sheets.
Images 5 of The quickest way to filter data by color in Google Sheets.

Step 7: Next, select Format > Conditional Formatting .

images 6 of The quickest way to filter data by color in Google Sheets.
Images 6 of The quickest way to filter data by color in Google Sheets.

Step 8: In the "Apply to range" section , select the data range to filter from the filtered Color column by clicking the square box on the right.

images 7 of The quickest way to filter data by color in Google Sheets.
Images 7 of The quickest way to filter data by color in Google Sheets.

Next, select the data range you want to filter. Then press OK.

images 8 of The quickest way to filter data by color in Google Sheets.
Images 8 of The quickest way to filter data by color in Google Sheets.

Step 9: Select Format cells if. > Text contains . Then, enter the color you want to filter, for example, #ffffff.

images 9 of The quickest way to filter data by color in Google Sheets.
Images 9 of The quickest way to filter data by color in Google Sheets.

Step 10: Click Done to finish. The cells with the color #ffffff in the Filtered Colors column will be highlighted.

images 10 of The quickest way to filter data by color in Google Sheets.
Images 10 of The quickest way to filter data by color in Google Sheets.


Above is a guide on how to filter data by color in Google Sheets. TipsMake hopes that this article will help you easily perform these steps to assist you in your work. If you are using Microsoft Excel and don't know how to filter duplicate data, you can refer to how to filter duplicate data in Excel here.

5 | 1 Vote
« PREV : How to count words...
How to use the DMAX... : NEXT »