Count Colored Cells in Excel (using Formula or VBA)

  Рет қаралды 387,688

TrumpExcel

TrumpExcel

Күн бұрын

Пікірлер
@jansykora6390
@jansykora6390 3 жыл бұрын
It's a great ! Thank you so much from Czech republic
@sepidehnourian6404
@sepidehnourian6404 Жыл бұрын
Fantastic! Thanks for sharing this. VBA worked very well for my set of data.
@agapheputrasusilo741
@agapheputrasusilo741 2 жыл бұрын
Thank you brother. It solves my daily problems.
@lukec.9819
@lukec.9819 Жыл бұрын
Just what I was looking for! THANKS!!!
@bsnunnery
@bsnunnery 3 ай бұрын
Super helpful!!! Thank you so much!
@paolagutierrez9086
@paolagutierrez9086 8 жыл бұрын
Thanks for taking your time to explain this!
@garys2187
@garys2187 8 жыл бұрын
Excellent. Well explained and much simpler than other solutions that I have found.
@redhaakhund1271
@redhaakhund1271 3 жыл бұрын
I have below code and its not working as to be blinking cell. Plz advise. Many thanks sir Sub Blinking_Status() Dim BlinkingCells As Range For Each BlinkingCells In Range("VacationList_Tbl[Status]") If BlinkingCells = "On Leave" Then BlinkingCells.Interior.color = 255 'Red ElseIf BlinkingCells = "On Duty" Then BlinkingCells.Interior.color = 14395790 'Blue ElseIf BlinkingCells = "Waiting" Then BlinkingCells.Interior.color = 65535 'Yellow End If Next BlinkingCells Application.OnTime Now + TimeValue("00:00:06"), "Blinking_Status", , True End Sub
@maggiewhitaker9655
@maggiewhitaker9655 5 жыл бұрын
VBA method very helpful, Thanks.
@Kingmaker-cr4wj
@Kingmaker-cr4wj Жыл бұрын
Excellent Sumit.. Very well explained.
@trumpexcel
@trumpexcel Жыл бұрын
Thank you.. glad you found the video useful :)
@Wael_Shabo
@Wael_Shabo 4 жыл бұрын
BIG LIKE! that is exactly what I was looking for. thanks!
@trumpexcel
@trumpexcel 4 жыл бұрын
Glad you found the video useful!
@jerryr536
@jerryr536 5 жыл бұрын
It doesn’t work with conditional formats is there a way around that. I need a formula that’s fluid on changing conditions
@bonokul
@bonokul 4 жыл бұрын
Hello Jerry, did you ever get an answer to your question regarding the work around with conditional formatted colors. I am working on a project trying to use the technique above, but for colored cells based on conditional formatting. Thanks.
@WhereAmEye2187
@WhereAmEye2187 4 жыл бұрын
@@bonokul did you figure this out? I'm trying to figure out how to apply this to conditional formatting
@tiborboth746
@tiborboth746 4 жыл бұрын
@@WhereAmEye2187 the VBA thing is not working for me either... I typed everything as he did, but it's not working...
@OzduSoleilDATA
@OzduSoleilDATA Жыл бұрын
FASCINATING! 😃
@dbblagent6865
@dbblagent6865 4 жыл бұрын
Where is your color code number list? you told you already provide taht link. where is it?
@keokethomas839
@keokethomas839 8 жыл бұрын
Hi, thanks for the explanation. I decided to use the VBA method, however I am consistently getting '0' as the value, even though I have several of each colour in the range. I also have blank(white-no colour) cells in the range as well, does this make a difference? Are you able to assist or advise why it doesnt seem to be able to count the colours in the range?
@jayyy_seeeee
@jayyy_seeeee 3 жыл бұрын
Edit the TotalCount + 1
@pandashashwat
@pandashashwat 3 жыл бұрын
@@jayyy_seeeee what should I write in place of that , I am also getting same issue
@ttalvord
@ttalvord 2 жыл бұрын
@@pandashashwat Did we get an answer? I have the same issue.
@metububu
@metububu Жыл бұрын
Most probably it is not the same color as you select, It could be slightly different color "RGB" and you could not realize it. Be sure you use same color.
@ricksotelo9144
@ricksotelo9144 3 жыл бұрын
I how about if wanted the function to automatically change the count if I decided to change the colors on the cells manually. Would this function allow me to do this?
@36cycle
@36cycle 8 жыл бұрын
VBA works perfect, also on ranges!! Many thanks for sharing!
@mhammad3492
@mhammad3492 4 жыл бұрын
You are a life saver 🌹
@AjayKumarparmar
@AjayKumarparmar 9 жыл бұрын
nice video Trump Excel. I also teach people on excel and vba and this video was really very informative ,the second trick. keep up the good job
@VirenderSingh-w5c
@VirenderSingh-w5c Жыл бұрын
please share the formaula you create in sheet 3
@ventjemazzel8822
@ventjemazzel8822 5 жыл бұрын
Another great video!!! Thanks man!!!
@savethedatestickers5725
@savethedatestickers5725 4 жыл бұрын
Brilliant! I love it. Thank you for this excellent tutorial.
@njemmison
@njemmison Жыл бұрын
Does this work for conditionally formatted colors??
@ganeshoptom
@ganeshoptom 3 жыл бұрын
This function does not work on conditional formatting. Is there any method we can do for conditional format color?
@FPLMikkel
@FPLMikkel 6 жыл бұрын
This works perfect, except the cells containing the GetColorCount is not updating automatically. They did so the first time when I made the spreadsheet, but as I am reopening it, it will not update automatically. Any ideas?
@mariaheart8259
@mariaheart8259 5 жыл бұрын
Click F2 then Entre and you're all set
@JM-rd5eh
@JM-rd5eh 4 жыл бұрын
CTRL ALT F9 refreshes the whole sheet I have just found.
@justWithRight
@justWithRight 4 жыл бұрын
When I color more cells they do not reflect in the equation automatically, how can i solve this?
@bnkwupt
@bnkwupt 4 жыл бұрын
I'm encountering the same issue. I've found that you have to manually recalculate the colored cells by clicking in your GetColorCount cells, then click in the formula bar and press enter. It will recalculate the totals. This applies to his third scenario for using a custom function.
@tiborboth746
@tiborboth746 4 жыл бұрын
the VBA thing is not working for me... I typed everything as you did @TrumpExcel, but it's not working...
@eagle3498
@eagle3498 5 жыл бұрын
Hi there, i applied your method of count using custom function but m getting "zero" in cells where they should give me total number of color cells. Can you help.pls. thx
@PierreBellefeuille_Muse
@PierreBellefeuille_Muse 3 жыл бұрын
Thanks for this tutorial. I tried the third method. It works, but the count is not auto updated if I add at the end another coloured cell into a column. The only way at this time to update the result is to select the cell where the count should appear, then go at the end of the equation into the equation bar and type Enter. Do you have any idea why the count cell isn't auto updating the result with a specific column when I add to this column a new coloured cell? I saw down here that many are facing the same issue.
@prees2509
@prees2509 2 жыл бұрын
that is rowwise. I want how to identify in a table which are randomly placed cells are randomly coloyred
@archanaaa2514
@archanaaa2514 4 жыл бұрын
Sir, what does d code line indicates total count = total count+1?
@anhnhatnguyet4628
@anhnhatnguyet4628 4 жыл бұрын
count or sum by font color, not background color, can work this problem with VBA ?
@arpadcsorba2053
@arpadcsorba2053 3 жыл бұрын
Used the VBA method, but I have to double click the cell that has the count to update the number.
@rubicxcibur
@rubicxcibur 3 жыл бұрын
Filter in color seems to work in columns but not in rows. I don't understand that.
@jeremydrennen6967
@jeremydrennen6967 5 жыл бұрын
Is it possible to Average instead of Add them? How would I go about doing that?
@abj9121
@abj9121 6 жыл бұрын
after you select your cells its hard to understand what to type: F or F4. it does not matter cos none of the options work and im confused about how to close those brakets
@cdafonseca1
@cdafonseca1 9 жыл бұрын
thanks very well explained
@narendramohan85
@narendramohan85 4 жыл бұрын
Dear I have taken A B C D and using same formula but showing 0. And if i am taking Number instead of A B C D that working , can u help
@someone2879
@someone2879 6 жыл бұрын
Thank you Great explanation That really helped
@viqq183
@viqq183 2 жыл бұрын
How to loop the VBA?
@gonzalopineda3185
@gonzalopineda3185 8 жыл бұрын
Thanks for sharing this... very helpful!
@LiquidSnake1988
@LiquidSnake1988 6 жыл бұрын
how about I want all blue to be in the in order in other sheet and In that sheet if I modify it or replace its text it should reflect to the original sheet? how? thanks
@lynner5027
@lynner5027 9 жыл бұрын
This is great, but anyway it can work for decimals? I have never used VBA before and this seems to only work for whole numbers
@joelsoumar7819
@joelsoumar7819 5 жыл бұрын
Thanks This was helpful in creating a time-sheet to keep track of vacation and sick days used. The only problem I am having is I must reenter the formula for it to total anytime a background color in the range is changed. Is there a way to make this so that it auto updates when I change the color?
@dempseyroll96
@dempseyroll96 5 жыл бұрын
Joel Soumar VBA
@bethsansone3921
@bethsansone3921 4 жыл бұрын
@@dempseyroll96 I used VBA and it didn't update if I change the color after entering the formula initially. I have to go to the cell with the formula, click on the formula bar, and hit enter to update it
@leeschofield6071
@leeschofield6071 4 жыл бұрын
If you need to SUM the CONTENTS of the coloured cells, I used the 3rd VBA method simply change this code line TotalCount = TotalCount + 1 to this... TotalSum = TotalSum + rcell.Value
@m71544232
@m71544232 8 жыл бұрын
I wonder if there is a way to count the total colored cells that has alphabetical value please?
@latinourbano
@latinourbano 8 жыл бұрын
what if I dont have numbers but text?
@SmartcadSoftwareSolutions
@SmartcadSoftwareSolutions 6 жыл бұрын
Can I expand the range horizontally?
@erickmaidana8280
@erickmaidana8280 4 жыл бұрын
how to solve #name error in get.cell thanks a lot
@falekavamahe4631
@falekavamahe4631 8 жыл бұрын
My cells are under conditional formatting and it counts each cell even if it is not the color I nominated Is there a way around this? Thanks
@sirshiirev804
@sirshiirev804 8 жыл бұрын
very helpful, excellent
@joshuarosario7223
@joshuarosario7223 4 жыл бұрын
Hi Sumit, this tutorial was very helpful for me, but after applying the getcolor macro i have to repeatedly refresh the formula. Is there any other way around it, i have also tried closing the file and reopening it and still remains the same until i go to each cell and refresh the formula.
@ashvinkalleejaisriram
@ashvinkalleejaisriram 3 жыл бұрын
kzbin.info/www/bejne/haOkp6eOfp2tjNk You may view this video as from time 07:00
@katjanartey5720
@katjanartey5720 8 жыл бұрын
Very useful! VBA works perfectly on the overall report but when I use a filter it then does not adjust the cells counted based on the filter selection. How can this be solved?
@sajadmk6618
@sajadmk6618 5 жыл бұрын
Respected Sir, I've a doubt...if cell colour is changed then formula will not execute automatically...is there any vba code to do that..
@sergiocordova3628
@sergiocordova3628 7 жыл бұрын
Hello Trump Excel. Thank you for the informative video. I attempted to use the VB Editor under Office 360 for Mac version and could it would not RUN PROGRAM due to an error on the TotalCount = Total Count + 1 line. Would you have another option?
@zaheerali5042
@zaheerali5042 9 жыл бұрын
Hi Sumit it's awesome, but it's not working in conditional formatting. can you share any other formula which will work on conditional formatting not Macro.
@suja3443
@suja3443 6 жыл бұрын
Instead of counting, can we use formula to determine True or False if any of the cell in a row is colored.
@theostravel
@theostravel 8 жыл бұрын
Thank you so much. I will use the VBA method. Is there a way to keep a running count of cell color? I use a call sheet, and the way to keep count of daily call counts for the week is by highlighting the cells, and the following week re-use the sheet. How can I have the results update by the cells highlighted in say Yellow, and then cleared back to zero when I remove the yellow highlight - then change based on the next weeks usage?
@cyunglam1
@cyunglam1 7 жыл бұрын
Thanks for sharing it! I copied and pasted your Macros formula and did exactly what you showed but it always gives a error message as "#NAME?". Do you know why? Thanks!
@Sinatra_67
@Sinatra_67 8 жыл бұрын
Hi - I have tried using 'get cell' all day but keep getting an error when I use the named cell to count. The error comes back as name, any suggestions?
@derrylslh
@derrylslh 8 жыл бұрын
I have a question: How to count numbers with combination? For example: 1234 have 24 permutation, so if cell 1 is 2341and cell 2 is 3412 the result count is 2, is there a formula for this kind if count, please help thanks.
@DEVIDAS915
@DEVIDAS915 4 жыл бұрын
Thanks. Work it
@jacobprestia248
@jacobprestia248 7 жыл бұрын
Hi is there a formula or macro to say "yes" or "no" in a cell based on a colour of another cell? for example if i have a cell coloured in green a text comes up in the cell next to it that says "yes" if the cell is green or "no" if the cell is not green?
@suja3443
@suja3443 6 жыл бұрын
I just want answer for the exact question
@franciscoramosberninzon8623
@franciscoramosberninzon8623 8 жыл бұрын
Hi, I wonder if you know the name in spanish of the =GetColorCount formula, since my excel has a spanish configuration. Thank you.
@kirandeepchoudhry9232
@kirandeepchoudhry9232 5 жыл бұрын
Thanks Puneet for your excellent work, can I save these macros as add-in.plz reply
@1989acha
@1989acha 8 жыл бұрын
great video. One question. In the second example: how does ifcount know the background color of the cells on the left?
@DianaEvans1228
@DianaEvans1228 8 жыл бұрын
I like the second method. Can it be used for columns as well and rows?
@llambproduxions
@llambproduxions 6 жыл бұрын
thank you!
@TehDectator
@TehDectator 9 жыл бұрын
Hi, Can you please give me the formula for the below question: Using a formula, find the value of in the cell which is highlighted in green without directly referencing the cell
@shaukatsamad2510
@shaukatsamad2510 6 жыл бұрын
count cell get cell is not working pls advise to use different formula thnx
@gazaille89
@gazaille89 8 жыл бұрын
What if the cell has been turned to a Color with Conditional Formatting? Is it possible to count those cells just as you did in the third example?
@taraelliott8031
@taraelliott8031 8 жыл бұрын
Hey Jonathan, did you ever get feedback on this? I am trying to count color cells based on conditional formatting. Thanks!
@alializadeh8195
@alializadeh8195 Жыл бұрын
Thanx
@suja3443
@suja3443 6 жыл бұрын
Instead of counting, can we use formula to determine True or False if any of the cell in a row is colored.
@svikram78
@svikram78 8 жыл бұрын
i am doing this function but every time i am getting 6 . why??? kindly explain
@stanisfine
@stanisfine 8 жыл бұрын
This was amazing and very helpful. I have a particular project where I will be leveraging this, however its a little more convoluted. I have a spreadsheet of seating arrangements in a large classroom. There is a grid in the spreadsheet that defines the different age range and scattered in the spreadsheet are student names with colors that fit their age. My goal is to sort the information in a simple column that would say if student in cell B5 is color green and green is defined as age range between 18-19 in cell D4, then sort this data by making G1=name and H1=age range. Is this possible?
@emotionbyhasan8135
@emotionbyhasan8135 4 жыл бұрын
Deer Bro Pls Help Me Exel Cell Color Count Formula In Ur Exel GetColorCount Formula , I will Send To ue email my exel sheet , i will try but not work , pls help us
@rvde3749
@rvde3749 8 ай бұрын
Function GetColorCount(CountRange As RANGE, CountColor As RANGE) Dim CountColorValue As Integer Dim TotalCount As Integer CountColorValue = CountColor.Interior.ColorIndex Set rCell = CountRange For Each rCell In CountRange If rCell.Interior.ColorIndex = CountColorValue Then TotalCount = TotalCount + 1 End If Next rCell GetColorCount = TotalCount End Function
@rvde3749
@rvde3749 8 ай бұрын
That is the function i typed over. When I am trying to use the formula in excel I get the standard erro 'there's a problem with your formula' . It happens after I click Enter. Can someone spot the mistake? It is my first time using a function with VBA =GetColorCount(A14:$AC$138,A158) First is the range, and A158 is just an empty cell in the colour I want to count. I hope someone can help
@trumpexcel
@trumpexcel 8 ай бұрын
I just tried the code you mentioned and the formula in my Excel, and it seems to be working fine.
@rvde3749
@rvde3749 8 ай бұрын
@@trumpexcel Thanks for trying! It seems to be an issue with security settings and not the formula itself. Thanks!
@larki0917
@larki0917 6 жыл бұрын
This does not work in Excel 2016.
@andrejvlasenko5135
@andrejvlasenko5135 6 жыл бұрын
This works in excel 2016 - > www.ablebits.com/office-addins-blog/2013/12/12/count-sum-by-color-excel/
@muhammadsaqib2961
@muhammadsaqib2961 4 жыл бұрын
NOT WORKING
@SrinivasanNSamskritam
@SrinivasanNSamskritam 2 жыл бұрын
Doesnt work!!
@JohnMacaulay.Accountant
@JohnMacaulay.Accountant 3 жыл бұрын
DOESN'T WORK!!!
SUM and COUNT by Cell Colour in Excel -- WITHOUT VBA!
16:32
Cellmates
Рет қаралды 101 М.
How to Sum Cells by Color in Excel (Get it to update automatically)
10:54
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Check if a Cell is a Certain Color Using GET.CELL in Excel
8:11
MyExcelOnline.com
Рет қаралды 18 М.
How to Count Colored Cells in Excel (Three Ways!)
5:30
David McLachlan
Рет қаралды 43 М.
Sum Cells Based on Their Color in Excel (Formula & VBA)
12:18
TrumpExcel
Рет қаралды 142 М.
SURPRISING Advanced Filter TRICK in Excel (You've Never Heard Of!)
5:59
Leila Gharani
Рет қаралды 1,2 МЛН
Sum By Cell Color... The Magic Comes True Without VBA
13:56
Officeinstructor
Рет қаралды 65 М.
Stop using VLOOKUP in Excel. Switch to INDEX MATCH
11:05
Excel Level Up
Рет қаралды 2,4 МЛН
Uncover Hidden Excel Powers: Sum & Count Cells by Color!
9:36
Excel Cell Reference: Absolute, Relative or Mixed?
7:46
Leila Gharani
Рет қаралды 395 М.
How to Easily Create a Data Entry Form in Excel | No VBA
22:30
Jopa Excel
Рет қаралды 59 М.
Excel COUNTIF & SUMIF On Colour - No VBA Required
5:14
Chester Tugwell
Рет қаралды 432 М.