Count blank cells

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

Have the following formula which counts the number of cells within a list based on a start date and end date:
Rich (BB code):
=COUNTIF(Monthly!$I$3:$I$479,"<="&$B$3)-COUNTIF(Monthly!$I$3:$I4$79,"<"&$B$2)
How do I count just the blank cells?

$B$2 = Start date (user input)
$B$3 = End date (user input)
Monthly!$I$3:$I$479 = Range to evaluate user inputs against (ordered ascending)

Thanks,
Jack
 
=SUMPRODUCT(--(Monthly!$I$3:$I$479<=&$B$3),--(Monthly!$I$3:$I4$79>=$B$2),--(Monthly!$L$3:$L4$79=""))
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Rory.. annoying, I should have worked that out, especially after you provided the first formula!

Thank you very much and enjoy rest of your day,
Jack
 
Upvote 0
Hi JackDanIce,

First of all make it sure that your format date is correct because when I copied your example it is not all March. But regarding to your query please check this formula. If you are using 2003 version use the sumproduct but if you are using 2007 you can use countifs.

=COUNTIFS($I$3:$I$479,"<="&$B$3,$I$3:$I$479,">="&$B$2,$L$3:$L$479,"")

=SUMPRODUCT(--($I$3:$I$479<=$B$3),--($I$3:$I$479>=$B$2),--($L$3:$L$479=""))

I hope this will help you....
 
Last edited:
Upvote 0
Hi rogerimee and welcome to the board,

Date format is all being done via my macro and formatting is defined as I need it. The formula's are purely for management information reporting where I don't want to use marco's.

Excel version is 2003 so jonmo and rory's suggestions work as needed.

Thanks for your comments though,
Jack
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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