SUMPRODUCT and Arrays are inefficient and should (IMO) be used in moderation esp. with large precedent ranges.
Given the singular condition SUMIF is the way forward - you would not use SUMPRODUCT.
In terms of the SUMPRODUCTs - if only by means of explanation - the 2nd you list is not an approach you would use.
For an OR based test (as outlined) you would use a single SUMPRODUCT:
(here the tests are mutually exclusive so no need for SIGN test etc...)
The ISNUMBER/MATCH approach is more succinct - more so as the number of options increase.
Another alternative to the above would be:
however here we're explicitly coercing underlying values so should any cell within B2:B14 contain a non-numeric entry (eg Null or "apple" etc...) then a #VALUE! error would result (the alternatives would not).
Bookmarks