IanMackayinAmsterdam
New Member
- Joined
- Dec 3, 2008
- Messages
- 33
Hi there,
I have a small question about a spreadsheet I'm trying to create.
I have a sheet with a country in column A and a material number in column B and the number of contracts in column D.
Above that I have totals per country, at the moment I'm using a SUMPRODUCT formula to get the totals per country in column D.
But what I would really like is to be able to do is also filter on the material number in column B and also get the totals per material number in the above totals (so basically if I filter on 1 material I would get the totals per country on that specifically).
I have googled this and I assume I need to add the subtotal formula somewhere into the above formula, I have tried but I can't seem to get anything to work.
Any help would be greatly appreciated.
Thanks in advance,
Ian
I have a small question about a spreadsheet I'm trying to create.
I have a sheet with a country in column A and a material number in column B and the number of contracts in column D.
Above that I have totals per country, at the moment I'm using a SUMPRODUCT formula to get the totals per country in column D.
Code:
=SUMPRODUCT((A17:A2461 = C2)*(D17:D2461))
But what I would really like is to be able to do is also filter on the material number in column B and also get the totals per material number in the above totals (so basically if I filter on 1 material I would get the totals per country on that specifically).
I have googled this and I assume I need to add the subtotal formula somewhere into the above formula, I have tried but I can't seem to get anything to work.
Any help would be greatly appreciated.
Thanks in advance,
Ian