"COUNTA" but EXCLUDE cells with a "fill" of color

RoseBrooke

New Member
Joined
Oct 21, 2015
Messages
2
I want to create a formula that counts all nonblank cells in a column. BUT, I want to exclude any nonblank cells that ARE filled with a color from being counted. How can I do this?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Formulas can't directly evaluate based on colors, but you can with some vba. Of course if there's some other logic causing these colors you could potentially use that logic instead of resorting to vba

Here's a thread that may assist from this board.
http://www.mrexcel.com/forum/excel-questions/596605-count-cells-based-fill-color-text-criteria.html



I have no idea what a VBA is, and I am afraid I have little time to find out.
As for why the colors are there, it is because I add colors to cells containing values which are in the past and no longer relevant in the future (in the context of my spreadsheet), making it easier for me to see currently relevant values. I want a box/cell at the top of each column to automatically update/count the non-colored cells in the column that have text in them. So, when I fill in a particular cell/box with a color, the total amount of non-colored boxed with text are automatically updated.
 
Upvote 0
Instead of using the colors as the logical condition, it sounds like you could get away with counting date entries in the past. For example:

=COUNTIF($A$5:$A$100,"<"&TODAY())

Where A5:A100 contain date entries. This would count date entries that are now past due (yesterday or prior)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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