I am trying to figure out how to count the last 10 cell values that are bigger than 1, in a given range, and to exclude blank cells.
I have this array formula from another forum:
=IFERROR(AVERAGE(IF(ROW(A2:A20)>=LARGE(IF(A2:A20<>"",ROW(A2:A20)),MIN(COUNT(A2:A20),10)),IF(A2:A20<>"",A2:A20))),"")
It averages the last 10 cell values, excluding blanks.
I have tried to replace the "average" function with "countif
", and I added ">1"
, but without success,it returned zero.