Dear Excel Users!
This seems so clear to me but I can't understand how to get it to work, I feel really stupid!
example:
SUMIFS-help.jpg
I want to sum the values of "apple" & "banana" only when both are present within the same ID.
First I wrote the formula:
=SUMIFS(C$2:C$11,A$2:A$11,D2,B$2:B$11,"apple",B$2:B$11,"banana")
but that doesn't work. So then I tried:
=SUMIFS(C$2:C$11,A$2:A$11,D2,B$2:B$11,"apple"&"banana")
or variations
=SUMIFS(C$2:C$11,A$2:A$11,D2,B$2:B$11,"*apple*"&"*banana*")
=SUMIFS(C$2:C$11,A$2:A$11,D2,B$2:B$11&B$2:B$11,"apple"&"banana")
they don't work....
my logic is probably wrong and I'm not understanding how SUMIFS works. It's frustrating!
I've tried playing around with using IF and AND functions but no luck.
Any help would be greatly appreciated!
Thank you
Bookmarks