To my point about tables - I realize that using the tables seems odd at first, as you don't absolutely need them to get by. HOWEVER the real usefulness of the tables is that anytime you need to reference the data they contain, anywhere in the project, you can do so by name. This is enormously helpful when you start designing more and more parts of the project, but it's really handy when you have to look over another persons design, or even your own work later on when it's not fresh in your mind.
NON-Table Formula -- It's not terrible, but it's a mouthful. If you read it out loud it means nothing (until you track down all the references).
=IF(COUNTIFS(A:A,G2,B:B,H2,C:C,"")>0,"n/a",SUMIFS(INDEX($1:$1048576,,COLUMN(INDEX($1:$1,MATCH("Value",$1:$1,0)))),A:A,G2,B:B,H2))
Table way -- Now, try reading this out loud... sounds better.
=IF(COUNTIFS(Table2[Product],G2,Table2[Country],H2,Table2[Value],"")>0,"n/a",SUMIFS(Table2[Value],Table2[Product],G2,Table2[Country],H2))
Now - Go 'whole hog' with it. Rename the tables, and use them in BOTH places (I mean in the summary and the dataset) NOW you can really see what you are doing when you read through it 
=IF(COUNTIFS(T_RawData[Product],[@Product],T_RawData[Country],[@Country],T_RawData[Value],"")>0,"n/a",SUMIFS(T_RawData[Value],T_RawData[Product],[@Product],T_RawData[Country],[@Country]))
You only need to know a couple of key points: When you see a table name with a header in brackets like this, T_RawData[Product] , you are referencing the entire data column under the header. WHen you see the @ symbol inside the brackets, you are referencing the value under the header on the same row as the formula cell (so, just that one row - not the whole set).
:D
Bookmarks