Kune,
In your updated example, column 'J' was returning the wrong total due to blank cells in the span (D6:I6) - it's best not to use merged or 'span across multiple column' cells in formulas, since output formulas that rely on those cells have to be unnecessarily adjusted.
Regardless, I have adjusted the formula in cell J6 to:
You can paste that into cell J6, then fill down. It should give you the correct totals then. Basically, it is the same SUMPRODUCT formula you had, except I added a COUNTBLANK operator to deduct the number of blank cells in the span.
Also... be sure you use the proper reference models in your formulas. ex: Use (D6:I6=$D$4:$I$4) instead of (D6:I6=D4:I4) since you want the reference row (winning team) to remain constant.
Glad I could help.
- Vince
Bookmarks