Forum Discussion

Mick_Kitcher's avatar
Mick_Kitcher
Copper Contributor
Jan 18, 2021
Solved

Excel for Mac-Formula

Hi, i need a formula that counts a series non contiguous horizontal cells which are formatted and have formulas in to display the results of football matches played in the English Premier league. eit...
  • HansVogelaar's avatar
    Jan 18, 2021

    Mick_Kitcher 

    First, correct the differences between club names in columns B and BM:

    Leicester Cty vs Leicester City

    Man United vs Man Utd

    Sheffield Utd vs Sheffieild Utd.

     

    Enter the following formula in BO3:

     

    =SUMPRODUCT(($D$3:$BK$42="3")*(MOD(COLUMN($D$3:$BK$42),3)=0)*($B$3:$B$42=$BM3))+SUMPRODUCT(($D$3:$BK$42="3")*(MOD(COLUMN($D$3:$BK$42),3)=0)*($B$2:$B$41=$BM3))

     

    In BP3:

     

    =SUMPRODUCT(($D$3:$BK$42="1")*(MOD(COLUMN($D$3:$BK$42),3)=0)*($B$3:$B$42=$BM3))+SUMPRODUCT(($D$3:$BK$42="1")*(MOD(COLUMN($D$3:$BK$42),3)=0)*($B$2:$B$41=$BM3))

     

    In BQ3:

     

    =BN3-BO3-BP3

     

    Fill or copy down from BO3:BP3 to BO22:BP3.

Resources