I have a huge data set (with between 300 000 - 400 000 observations) in Excel. I now want to make a table that sums values from the data set based a certain criteria, like year and country. For that purpose I use sumif:
=SUMIFS('Data'!F:F; 'Data'!$A:$A;$A2)
Where $A2 is the country (I have four more input criteria, B1-E1, that are not shown here).
This works fine, except for the problem that I want the code to ignore empty criteria. That is, if I do not put in a value for country, I want it to sum the data for all countries and ignore the empty criteria.
Any suggestions?
edit: See table below for the criteria (A1-E1):
Land Region Code Name of product Year
Sweden Stockholm 52 Apple 1995