Countifs between two dates is not returning the correct figure

kylerisi

Board Regular
Joined
Nov 1, 2015
Messages
93
Office Version
  1. 365
Platform
  1. Windows
I have the following formula that counts all the instances where the number in A14 (0) appears in the J:J range which sits between the two dates in D1 (01/03/2020) & D2 (31/03/2020)

The expected figure is 354, however the computed figure is 345. Can anyone help explain why this may be?

=COUNTIFS('URS (Whole Network)'!$J:$J,">="&D$1,'URS (Whole Network)'!$J:$J,"<="&D$2,'URS (Whole Network)'!$K:$K,Dashboard!$A14)

Any help would be highly appreciated.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Are they just dates, or dates and times in the same cell? Even if the times are hidden by formatting, the formula will still consider them so anything other than midnight will be missed.

See if this gives the correct result.

=COUNTIFS('URS (Whole Network)'!$J:$J,">="&D$1,'URS (Whole Network)'!$J:$J,"<"&(D$2+1),'URS (Whole Network)'!$K:$K,Dashboard!$A14)
 
Upvote 0
Are they just dates, or dates and times in the same cell? Even if the times are hidden by formatting, the formula will still consider them so anything other than midnight will be missed.

See if this gives the correct result.

=COUNTIFS('URS (Whole Network)'!$J:$J,">="&D$1,'URS (Whole Network)'!$J:$J,"<"&(D$2+1),'URS (Whole Network)'!$K:$K,Dashboard!$A14)

Jasonb75, yes you are correct they include dates and times - and YES your formula works, thank you so much
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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