Count Blank Cells Within Date Range

Coucher

New Member
Joined
Apr 1, 2011
Messages
3
Trying to count the number of blank cells within a date range.

For example...

B3:B2500 could either have data or be blank.

C3:C2500 has a calendar date, for example 04/01/2011.

D3:D14 has the first day of each month, for example, 01/01/2011, 02/01/2011, 03/01/2011, etc

F3:F14 has the last day of each month, for example, 01/31/2011, 02/28/2011, 03/31/2011, etc

So, I want to count the cells in B3:B2500, if blank, and if between D3 to F3, or D4 to F4, so on & so on.

I've toyed around with COUNTBLANK, COUNTIF, & SUMPRODUCT formatting each different ways but can't seem to get to work.

Any insight or assistance is appreciated in advance.

Thanks!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Trying to count the number of blank cells within a date range.

For example...

B3:B2500 could either have data or be blank.

C3:C2500 has a calendar date, for example 04/01/2011.

D3:D14 has the first day of each month, for example, 01/01/2011, 02/01/2011, 03/01/2011, etc

F3:F14 has the last day of each month, for example, 01/31/2011, 02/28/2011, 03/31/2011, etc

So, I want to count the cells in B3:B2500, if blank, and if between D3 to F3, or D4 to F4, so on & so on.

I've toyed around with COUNTBLANK, COUNTIF, & SUMPRODUCT formatting each different ways but can't seem to get to work.

Any insight or assistance is appreciated in advance.

Thanks!
One way...

Entered in F3 and copied down to F14:

=SUMPRODUCT(--(B$3:B$2500=""),--(C$3:C$2500>=D3),--(C$3:C$2500<=E3))
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF($C$3:$C$2500>=K3,IF($C$3:$C$2500<=L3,1-($B$3:$B$2500=""))))

This counts non-blank and non-empty data cells.
 
Upvote 0
One way...

Entered in F3 and copied down to F14:

=SUMPRODUCT(--(B$3:B$2500=""),--(C$3:C$2500>=D3),--(C$3:C$2500<=E3))

Substituted my correct cell locations for the generic ones used in the example I provided and this one worked great.

Thanks!

:pray:
 
Upvote 0
**Edit**

I'm an idiot, saw a syntax error I had referencing the wrong range for the dates. Works great.
 
Last edited:
Upvote 0
Substituted my correct cell locations for the generic ones used in the example I provided and this one worked great.

Thanks!

?
I want to use this function but my data is in a different sheet and I need to do calculations on a new sheet. Please assist
 
Upvote 0
I want to use this function but my data is in a different sheet and I need to do calculations on a new sheet. Please assist
An easy way is to set up the formula and get it working on the same sheet as the data as suggested above and then Cut that formula cell and Paste it into the other sheet.
 
Upvote 0
@Peter_SSs Thanks a lot.An easy way is to set up the formula and get it working on the same sheet as the data as suggested above and then Cut that formula cell and Paste it into the other sheeControl+shift+enter, not just enter: =SUM(IF($C$3:$C$2500>=K3,IF($C$3:$C$2500<=L3,1-($B$3:$B$2500="")))) This c
Control+shift+enter, not just enter:

=SUM(IF($C$3:$C$2500>=K3,IF($C$3:$C$2500<=L3,1-($B$3:$B$2500=""))))

This counts non-blank and non-empty data cells.
This is not working for me, it returns the #VALUE! error. Any help?
 
Upvote 0

Forum statistics

Threads
1,224,612
Messages
6,179,890
Members
452,948
Latest member
Dupuhini

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