Count Cells Based on Color in Google Sheets (Easy Formula)

preview_player
Показать описание

In this video, I will show you how to count cells based on color in Google Sheets.

While there is no inbuilt formula in Google Sheets to count colored cells, you can easily create your own custom function using Google app script.

Once you have the Google app script in place, you can use the new function just like any other regular function in Google Sheets.

The function I create in this video takes the range of cells that have the colored cells, and the cell from where you want to pick the color and quickly gives you the total count of those cells

00:00 Intro
00:10 Getting the Script to Count Colored Cells
00:45 Adding Script to Google Sheets
01:28 Using the Formula to Count Colored Cells
02:40 Updating all the Custom Functions manually

This channel is meant for people who want to learn about Google Sheets and be more productive in their day to day life. It covers a range of Google Sheets topics such as useful Google Sheets features, Google Sheets functions, Google Sheets formulas, Pivot table, Google Apps Script,.Shortcuts, Google Sheets Charting, Data Analysis, etc. Please subscribe to this channel and never miss a new video on Google Spreadsheets

#GoogleSheets #GoogleSheetsTips #Spreadsheet
Рекомендации по теме
Комментарии
Автор

If you found this video useful, please give it a thumbs up 👍 and subscribe to the channel. Also, let me know what Google Sheets topics you want me to cover in future videos.

SpreadsheetPoint
Автор

I have been searching all day for a simple formula/script combo that works with conditional formatting and does it automatically (without the need to "refresh") and this finally does it! Thank you so much for sharing. You have no idea how helpful it is for the tracker I'm trying to do. I hope more people find this 👌🏻

elleporidae
Автор

Not only works well, it gives me confidence to write some formulas of my own in the Script Editor, thx!

jamesklososky
Автор

You are a lifesaver... I can't believe I finally found the formula I needed. Such a useful video!!! You are the BEST!

connectlanguagecenter
Автор

thanks bro, everything very well explained, I was with that problem for almost 4 hours. Greetings from Peru.

josefalconquispe
Автор

TypeError: Cannot read property 'pop' of null

marcoterrone
Автор

使用者;同時你的 SpreadSheetPoint is better than "Sum" in my asian English culture),我在一分鐘之內完成複製 App Fantastic!!!Sincerely Appreciation. 你的編撰和思維是我的學習典範。 Your video and web write-up is a role model to my learning.

julianfann
Автор

Great explanation! Ty so much for it ♥️

carolreal
Автор

Your video is so useful and you can explain clearly. Thank you !

mamiagoo
Автор

Thanks alot, it works fine.. you saved my day

RushdiAshraff
Автор

This helped me when Im mostly required of this option.. 😊

Shaeed
Автор

So thank you!!! u made my life easier :)

tianurhawa
Автор

you are a real life saver, thank you!

beabeeeee
Автор

Thank you so much for the link and the video explanation. I used this VBA method you showed, but it didn't work for me, so I looked at the article you linked in description and found an add-ons method that worked perfectly for my data. 👍

cameleonscorpion
Автор

I can't seem to get my Sheets program to recognize the fxn after I've successfully run it and saved it. What could be happening?

sashawheeler
Автор

if it shows error, check the lign 13 and 18 and change, with ; . I did it and it worked !! thank you for a lifesaving trick !!

yahbalinho
Автор

It's awesome 👏 thanks brother :) you saved a lot of time for me Today :)

MahmoudHermes
Автор

=Coloredcountcell is error on my end, how to fix?

blessedlifechannel
Автор

The code is not working and I can't see why; anyone figure it out?

aidanknox
Автор

Great! Do you know how I can make it work with indirect formula?

CaptainKage