Hi
I have a large, complicated spreadsheet but have made an easy example for my question!
I am using a sumproduct formula to return the sum of multiple criteria
=SUMPRODUCT((C243:G250),((C243:C250="Dog")+(C243:C250="Fox"))*(D243:D250="A")*(C243:G243="Jan"))
This part of my formula ((C243:C250="Dog")+(C243:C250="Fox")) is always different so rather than have to update the animal (and sometimes it is one animal and sometimes may) each time I would like to put in a lookup to a named range that I can update. Is this possible with sumproduct?
Thanks
J
I have a large, complicated spreadsheet but have made an easy example for my question!
Jan | Feb | March | ||
Dog | A | 5 | 13 | 15 |
Cat | D | 10 | 12 | 12 |
Duck | B | 5 | 11 | 1 |
Fox | A | 12 | 9 | 2 |
Dog | B | 8 | 6 | 4 |
Dog | A | 9 | 4 | 2 |
Cat | E | 6 | 7 | 3 |
I am using a sumproduct formula to return the sum of multiple criteria
=SUMPRODUCT((C243:G250),((C243:C250="Dog")+(C243:C250="Fox"))*(D243:D250="A")*(C243:G243="Jan"))
This part of my formula ((C243:C250="Dog")+(C243:C250="Fox")) is always different so rather than have to update the animal (and sometimes it is one animal and sometimes may) each time I would like to put in a lookup to a named range that I can update. Is this possible with sumproduct?
Thanks
J