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?
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
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
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.
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.