Please see attached
Input Data : Col A to Col F
Output data : Col G : Col K
I have created a SumIF formula that calculates the goals for and goals against the team.
However I want to amend is so that is will match the name against column H and populate the relevant data.
For example.
If Team name = ABC then it does a vlookup (col A to Col F) and match the name against Row I4 then
Under Col I and H: uses the SUM IF formula to show the correct data.
I tried using the under cell I3 but it returns #VALUE!
=SUMPRODUCT(--(B:B=H3),SUMIF(C:C,$D$2,D:D)+SUMIF(C:C,$E$2,E:E))
A formula to show the below correct data.
Name For Against
ABC 10 5 5
XYZ 8 5 3
Bookmarks