I have researched this issue everywhere, and I can't find an answer to my particular situation.
Here's my SumIfs statement.
B_white = Application.SumIfs(Range("G84:G" & LastRow), Range("G84:G" & LastRow), "1", Range("K84:K" & LastRow), "B*", Range("L84:L" & LastRow), "2 (test)")
For the final criterion, it needs to look for "2 (test)" OR just "2" but I can't use "2*" because there will be cells with "22" and "28" in them.
How can I alter this SumIfs statement so that it looks for "2 (test)" or "2"?
You can try
Sumproduct
with an array-version ofSumIfs
: