Ghost Sheet

SUMPRODUCT with OR: count a row once

How do I total returns that match one rule or another, without counting any twice?

This is the task for this topic. It is part of the plan; the level check before it is free.
G2Type a formula for G2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDEFG
1ReturnCarrierReasonValueClaimable
2RT-880BaysideChanged mind308.2Total
3RT-881Keel ExpressWrong item111.38
4RT-882Keel ExpressDamaged143.47
5RT-883NorthlineWrong item289.57
6RT-884BaysideWrong item92.41
7RT-885BaysideChanged mind424.55
8RT-886Keel ExpressWrong item103.31
9RT-887BaysideDamaged439.13
10RT-888SwiftWrong item136.76
11RT-889BaysideChanged mind140.42
12RT-890Keel ExpressDamaged146.93
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
Two SUMIFs added together count a row twice when it matches both rules. In SUMPRODUCT, add the tests: the sum is 1 or 2 when at least one passes. Asking whether it is above 0 turns that into a single yes, so every row counts once.
The shape of the formula
=SUMPRODUCT(((test1)+(test2)>0)*values)
How to remember it
Plus is OR, times is AND; >0 keeps OR from counting twice.
The usual mistake
SUMIF plus SUMIF for an OR rule. Rows that match both are added twice.

Keep practicing

Updated