How to count blank (non-coloured) cells

TotallyConfused

Board Regular
Joined
May 4, 2017
Messages
241
Office Version
  1. 365
Platform
  1. Windows
Hello

I have a sheet that contains a column of data running from B9 to B31 inclusive. Some cells are blanked out using the colours ‘black’, ‘yellow’ and ‘blue/purple’. The remainder of the cells are blank (clear). The number of blanked out cells can vary from time to time and may occur at any point within the column. What I need is a formula to count the number of blank cells. If at all possible, would it be possible to do this in Excel without having to use VBA?

If this can’t be done within Excel, what kind of VBA code would it take to accomplish this task?

As a side point, if I need to count the number of each coloured cell, is there a formula in Excel to do this?

I am fairly new to Excel, so any help you may be able to offer sure will be appreciated. Thank you.

TotallyConfused
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

TotallyConfused

Board Regular
Joined
May 4, 2017
Messages
241
Office Version
  1. 365
Platform
  1. Windows
Excel formulas can only run on values, not formatting (like cell colors). That will require VBA or an Add-In.
See the following link for VBA and Add-In options: https://www.extendoffice.com/documents/excel/1155-excel-count-sum-cells-by-color.html


Hello Joe

I want to apologize to you for not replying sooner. Due to family issues, I haven’t been able to visit this wonderful site for a few days. I’d like to offer my hearty THANK YOU for your answer to my question. I looked at the link you provided and found one of the examples given was exactly what I needed. Thanks again for your timely help. I love this site.

TotallyConfused
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,381
Office Version
  1. 365
Platform
  1. Windows
You are welcome.
I am glad it worked for you.
:cool:
 

Watch MrExcel Video

Forum statistics

Threads
1,118,168
Messages
5,570,615
Members
412,333
Latest member
hectamuptra
Top