Calculate a moving average in Excel with a dynamic lookback window that adjusts based on changing values.