Forum Discussion
Nishantu309034
Sep 17, 2020Copper Contributor
Countif to count date getting #Error
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
- Rajesh_SinhaIron Contributor
You have committed few basic mistakes.
- After the Count Range D11:D12,, COMMA is missing.
- Applied the operator is wrong sequence "=<",, must be "<=".
And the formula should like,,,
=COUNTIF(D11:D12,"<="&$H$10)
- NikolinoDEPlatinum Contributor
Count numbers or dates based on a condition
Excel for Microsoft 365 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007With VBA:Sub datum() Dim inZeile As Integer inZeile = Application.Match(CDbl(Date), Columns(1), 1) MsgBox Cells(inZeile + 1, 1).Address End Sub
Formula:
As Mr Riny van Eekelen has also pointed out.
Nikolino
I know I don't know anything (Socrates)
- Riny_van_EekelenPlatinum Contributor
Nishantu309034 Try it with a comma between D12 and "
- Nishantu309034Copper ContributorAh!.. Thanks a lot.