Forum Discussion

PeterYac's avatar
PeterYac
Copper Contributor
May 01, 2020
Solved

SUMIFS - Can criteria be entered directly?

Hi, I have a sumifs like:   Sumifs(A1:A4,Z1:Z4,3) where Z1:Z4 contain the number 1,2,3,4   I was trying to do this like this:   Sumifs (A1:A4,{1,2,3,4},3)  thereby removing the need for the ra...
  • PeterYac's avatar
    PeterYac
    May 01, 2020

    SergeiBaklan

     

    Hi Sergei,

     

    Thanks for this - your first suggestion works fine.

     

    When I tried SUMIFS(A1:A4,{1,2,3,4},3) I just get a syntax error - Excel clearly does not like {1,2,3,4} in this formula but evaluates it OK in the SUMPRODUCT one. Strange?

    thanks again

     

    Peter