Forum Discussion
COUNT IF FORMULA for month/year only
alexesprtu As a variant to all previous answers:
If the date/time entries are real date/time values, i.e. not texts looking like date/time, you can use a pivot table as suggested earlier. But you don't need to have the first conversion step. Pivot tables handle real date/time values very well and allow you to group them by year and month, without the need for formulae.
In the attached file I created a list of date/time values covering 6 years and created a simple pivot table from it (the first one). Select one specific year to display the count for each month for that year or select "All" to display the count for all months for all years together. Then you can create other tables as well from the same data source as demonstrated in the file. Your imagination is the only limiting factor here.
what about if i have in the same day 3 entries like 1-july 20 7:20
1-july-20 7:25
1-july-20 7:30
will it still work, as these are different dates for excel, it will show 3 items in the row label isnt?
- Riny_van_EekelenJan 26, 2022Platinum ContributorWell, give it a try and see what happens.