Countif to count date getting #Error

Copper Contributor

Hi, 

I am trying to count if a range of dates is greater or lesser than a particular date but facing Error. Please see the cell H11. You can check the formula in the formula bar. 

 

Can someone help to resolve it? 

 

Regards

Nishant 

4 Replies

@Nishantu309034 Try it with a comma between D12 and "

 

@Nishantu309034 

Count numbers or dates based on a condition

Ah!.. Thanks a lot.

@Nishantu309034 ,,

 

You have committed few basic mistakes.

 

  1. After the Count Range D11:D12,, COMMA is missing.
  2. Applied the operator is wrong sequence "=<",, must be "<=".

And the formula should like,,, 

 

=COUNTIF(D11:D12,"<="&$H$10)