# Number of dates greater than a given date

Hi

How can i count number of dates greater than a given date in excel, using excel function(countif)?

Thank you
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Group Finance ManagerCommented:
I would put the date  that needs to be compared in one cell then use this formula where A1 contains the date and A3:A11 is the date range to check. Obviously adjust the ranges

=COUNTIF(A3:A11,">"& A1)

You can put the date into the formula but my suggestion is more flexible.
0
Excel & VBA ExpertCommented:
1) Say your dates are in range A2:A15 and date criteria is in B1, then try this...
The below formula will count the dates in A2:A15 which are greater than 1st September, 2018.
``````=COUNTIF(A2:A15,">"&B1)
``````

2) Say your dates are in range A2:A15 and date criteria is hard coded i.e. not mentioned on a cell, then try this...
The below formula will count the dates in A2:A15 which are greater than 1st September, 2018.
``````=COUNTIF(A2:A15,">"&DATEVALUE("09/01/2018"))
``````
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

AnalystAuthor Commented:
Thanks subodh. That did work for me
0
Excel & VBA ExpertCommented:
You're welcome Asatoma!
0
Group Finance ManagerCommented:
My formula is the same but different ranges!
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.