Count of Dates in a range by month and ignore blank cells

JBates

New Member
Joined
Sep 11, 2020
Messages
10
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I have a list of closed dates and I am wanting a count by specific month. The problem is that for January it counts every blank as a record in January.

=SUM(IF(MONTH(tblDashboard[Closed])='R1 Dashboard'!$D$12,1))

I was also trying it this way but cannot tell it which month to choose from.

=COUNTIF(tblDashboard[Closed],"<>"&"")

Any help would be appreciated.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
One way is to use SUMPRODUCT, i.e.
Excel Formula:
=SUMPRODUCT(--(MONTH(B2:B8)=1),--(B2:B8<>""))
You should be able to change the range with your range reference.
 
Upvote 0
Solution
=COUNTA(A2:A7)Counts the number of nonblank cells in cells A2 through A7.
 
Upvote 0
=COUNTA(A2:A7)Counts the number of nonblank cells in cells A2 through A7.
Except that won't count entries exclusively for the month of January (see originl request).
 
Upvote 0
One way is to use SUMPRODUCT, i.e.
Excel Formula:
=SUMPRODUCT(--(MONTH(B2:B8)=1),--(B2:B8<>""))
You should be able to change the range with your range reference.
That worked great! Thank you Joe4!
 
Upvote 0
You are welcome!
Glad I was able to help.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,435
Members
448,898
Latest member
dukenia71

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