Des1gn1ng0ne
Board Regular
- Joined
- Jul 10, 2008
- Messages
- 73
I have a list of products in range A1:A9 that vary in the prefix and suffix, but most of them contain "BCI" or "LAM". I can sumif each of these with the "*BCI*"/"*LAM*" syntax, but I can not get the misc products that contain neither of these criteria.
I have patched together the two formulas below that have opposite affects.
=SUMPRODUCT((A1:A9<>"*BCI*")*(A1:A9<>"*LAM*")*(B1:B9))
Returns the sum of B1:B9 in its entirety.
=SUMIF(A1:A9,OR("<>*BCI*","<>*LAM*"),B1:B9)
Returns 0; however, the "<>*BCI*" or the "<>*LAM*" alone works.
Any help would be much appreciated!!
I have patched together the two formulas below that have opposite affects.
=SUMPRODUCT((A1:A9<>"*BCI*")*(A1:A9<>"*LAM*")*(B1:B9))
Returns the sum of B1:B9 in its entirety.
=SUMIF(A1:A9,OR("<>*BCI*","<>*LAM*"),B1:B9)
Returns 0; however, the "<>*BCI*" or the "<>*LAM*" alone works.
Any help would be much appreciated!!