arrays - Sumifs 2 sets of multiple criteria -


i had made researches here before posting. might missed please nice.

anyway, trying derive sum having 2 sets of multiple conditions 2 criterias.

for example,

i need sum of dogs, fish , cats owners alpha , beta.

my formula is

=sum(sumifs(numberofpets,pet,{"dog","fish","cat"},owner,{"alpha","beta"})) 

only dog has sum. possible have 2 sets of array in sumifs?

the best alternative have below.

=sum(sumifs(numberofpets,pet,{"dog","fish","cat"},owner,"alpha")+sumifs(numberofpets,pet,{"dog","fish","cat"},owner,"beta")) 

the arrays owners might expand in future.

thanks lot!

in case, use named range array of values lookup condition.

=sumproduct(sumifs(numberofpets,pets,choose({1,2},dogrange,ownerrange))) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -