Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sumifs with array criteria?

I have a sheet with two columns: Key and Value.

I'd like to sum all of the Values that has a Key that matches some predefined list of items (e.g,. "Person A, Person B, Person C").

This predefined list of values also in my sheet, in the cells C1:C20.

Ideally, I'd like to do something like: sumifs($ValueColumn, $KeyColumn, C1:C20). I would like this to sum ONLY the Values that has a Key that matches my list.

However, this doesn't seem to work. Any advice?

like image 444
Carl S Avatar asked Oct 18 '25 03:10

Carl S


1 Answers

Old post, but I believe a more eloquent solution is

=SUM(SUMIFS(D2:D19,C2:C19,A2:A5))
like image 137
Chris Avatar answered Oct 21 '25 09:10

Chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!