Count dates ending in year 'x' with positive claim count

inferno657

New Member
Joined
Aug 11, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi,

Essentially I need to count the total number of rows that have a claim count greater than zero, for each year. 2018, 2019 and 2020. So essentially 'count IF year ends in 2018 AND claim count greater than zero', repeating this for 2019 and 2020 etc.

How can I go about doing this?
 

Attachments

  • ref.PNG
    ref.PNG
    54.4 KB · Views: 7

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNT(FILTER(F2:F1000,(YEAR(B2:B100)=2019)*(F2:F1000>0)))
 
Upvote 0
Hi,

thanks for your swift reply! I really appreciate it.

Unfortunately using that formula is returning me a value of zero- any ideas?
 
Upvote 0
Typo on the col B range, it should be
Excel Formula:
=COUNT(FILTER(F2:F1000,(YEAR(B2:B1000)=2019)*(F2:F1000>0)))
 
Upvote 0
Typo on the col B range, it should be
Excel Formula:
=COUNT(FILTER(F2:F1000,(YEAR(B2:B1000)=2019)*(F2:F1000>0)))
It works! Thank you so much! Great solution and I really appreciate it.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
For future reference

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Count dates ending in year 'x' with positive claim count
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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