Why does this return "0"?
=SUMIFS(B:B,A:A,998001,A:A,110450)
Why does this return "0"?
=SUMIFS(B:B,A:A,998001,A:A,110450)
Because not both criteria are met
Try this one (Enter with Ctrl + Shift + Enter keys)
=SUM(IF($A:$A={110450,998001},B:B))
The conditions in SUMIFS are effectively ANDed together, for each cell in turn. So, A1 cannot be both 998001 AND 110450, and neither can A2, so it returns zero as there is nothing to add up.
Hope this helps.
Pete
One way...
=SUM(SUMIF(A:A,{998001,110450},B:B))
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Nice, thanks!
I was just going to post this: =SUM(SUMIFS(B:B,A:A,{110450,998001}))
Yeah, that will also work.![]()
Last edited by kevvyb2003; 06-10-2013 at 12:53 PM.
The forum owner prefers that you start your own thread rather than posting your question(s) in someone elses thread.
Rule #2 of the forum rules:
http://www.excelforum.com/forum-rule...rum-rules.html
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks