Forum Discussion

Daan21's avatar
Daan21
Copper Contributor
Oct 26, 2020
Solved

Need help with formula for counting the last 10 even rows that contain a value of a column

Hi, I need help with a formula.  See the picture for my excel table. I want to count the average of the last 10 even rows that contain a value (so not the last 2 even rows on the picture) of for ex...
  • HansVogelaar's avatar
    Oct 26, 2020

    Daan21 

    Try this formula:

     

    =SUMPRODUCT(OFFSET($B$70,COUNT($B$70:$B$1000)-20,0,20,1)*ISEVEN(ROW(OFFSET($B$70,COUNT($B$70:$B$1000)-20,0,20,1))))/10

Resources