Counting Colored Cells

kevin0226

New Member
Joined
Nov 25, 2019
Messages
7
Office Version
  1. 2016
Platform
  1. MacOS
How to count the number of highlighted (colored) cells in each row?
And bonus question: How to count the number of consecutive colored cells in a row (e.g. A8 and B8 would be 1, A8 and B8, and D8 and E8 would be 2)?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
For question 1, you will need to use VBA if the cells are colored manually. If they are colored with Conditional Formatting, you can use the same conditions to count as you use to color.
For question 2, someone else will have to answer, as I am not well versed in consecutive sequences.
 
Upvote 0

Forum statistics

Threads
1,215,216
Messages
6,123,669
Members
449,114
Latest member
aides

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top