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.

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.

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.

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.

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.

Step 7: Next, select Format > Conditional Formatting .

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.

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.

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.

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.


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.

Close
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup