日期 < today() 的最后 x 个单元格的平均值

average of last x cells for dates < today()

我们正在 google sheet 中跟踪我们的订单。此 sheet 还显示了产品的预测。现在我们想获得最近 15 天的平均订单数。所以函数必须是这样的: =平均值(今天之前日期的最后 15 个单元格)

我知道了,但只有在天气预报不存在的情况下才有效:

=AVERAGE(INDEX(L3:ACV3;COUNTA(L3:ACV3)-14):ACV3)  

试试,

=average(index(3:3, 1, match(today(), 2:2, 0)-14):index(3:3, 1, match(today(), 2:2, 0)))
=average(index(3:3; 1; match(today(); 2:2; 0)-14):index(3:3; 1; match(today(); 2:2; 0)))