• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 465
  • Last Modified:

How can I use SUMPRODUCT to sum the last 12 months

I have used the SUMPRODUCT formula to return the addition of the last 12 months of data
from another worksheet using Item, Month and Year as criteria. Can anyone correct the formula in the attached file.

I'm trying not to use any extra columns and will eventually use the formula in a macro.

1 Solution
Saqib Husain, SyedEngineerCommented:
Two things are obviously wrong

sumproduct uses direct formulas unlike sumif where the criteria is a string like ">"&...
and the other is that sheet1 should be inside the EDATE function and not outside it.

Here is the corrected formula. You can test the values returned

user2073Author Commented:
Great this formula works well, I'm inspired by the knowledge you have.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now