Count with date range

Memar

Board Regular
Joined
Sep 2, 2011
Messages
76
I want to modify the formula below and consider a date range


[FONT=&quot]Count cell number in column D from January 1,2017 – March 30 2017.
[/FONT]

[FONT=&quot]Count blank cells in Column E from the cell number January 1, 2017 – March 30, 2017 in column D
[/FONT]

[FONT=&quot]Count if cells in column E is greater then zero – Range is the January 1,2017 – March 2017 in column D
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]
Column A


Column B


Column C


Column D


Column E


Column F





January 1, 2017


March 1 2017


5


January 1, 2017

















3


January 15, 2017

















2


February 1, 2017


0

















February 28, 2017


0

















March 1, 2017


0









<tbody class="SCXW218393996" style="margin: 0px; padding: 0px; user-select: text; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent;">
</tbody>

[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]A formula needs to be modified in the date range in cell C1 = Count (D1:D5) Result = 5
[/FONT]

[FONT=&quot] =Countblank(E1:E5)+CountIF(E1:E5,">0") Result = 3
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]I want to put the date ranges in Cell A1 and B1
[/FONT]


Thanks for you time and help
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Clarification needed:

Problem description stipulates January 1, 2017 - March 30, 2017, yet B1 = March 1, 2017.

=COUNTBLANK(E1:E5)+COUNTIF(E1:E5,">0")

should give 2, not 3, for the data you have.
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,405
Members
449,448
Latest member
Andrew Slatter

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