I am trying to use the SUMIFS function to extract summary information out of a file but would like one of the criteria to be if the value being examined exists in a data table column.
The following formula works for summing all values in E3 which equal apple (plus the rest of the criteria):-
=SUMIFS(F3:F2000,C3:C2000,"Africa",D3:D2000,2007,E3:E2000,"Apple")
The problem I have is that instead of defining the full formula again just to combine the values for column E values equal to "Pear", I would like to be able to refer to an array/list/table where I can define all the values for column E that I would like to combine... I have tried the following (amongst others) and it did not work but it highlights what I am trying to achieve:-
=SUMIFS(F3:F2000,C3:C2000,"Africa",D3:D2000,2007,E3:E2000,OR("Apple","Pear","Peach"))
The following formula works for summing all values in E3 which equal apple (plus the rest of the criteria):-
=SUMIFS(F3:F2000,C3:C2000,"Africa",D3:D2000,2007,E3:E2000,"Apple")
The problem I have is that instead of defining the full formula again just to combine the values for column E values equal to "Pear", I would like to be able to refer to an array/list/table where I can define all the values for column E that I would like to combine... I have tried the following (amongst others) and it did not work but it highlights what I am trying to achieve:-
=SUMIFS(F3:F2000,C3:C2000,"Africa",D3:D2000,2007,E3:E2000,OR("Apple","Pear","Peach"))