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
Post a Comment