I am trying to replicate an Excel SUMIF calculating Half Year To Date revenue by product.
There are three criteria:
- Product
- Month > Prior half
- Month <= Month

I have created the attached macro using examples posted on this forum, however for a dataset of ~40,000 records it is taking over half an hour to complete when Excel can do this almost instantly.

Is there something that can be done to speed this up?
Thanks