We cannot use AND etc in array-entered formulas if the intent is a row-by-row logic test.
Instead, array-enter (press ctrl+shift+Enter instead of just Enter) the following formula:
{FORECAST.LINEAR([@Date];
IF([Date]>=[@[Date]]-5; IF([Date]<[@[Date]]; [Score]));
IF([Date]>=[@[Date]]-5; IF([Date]<[@[Date]]; [Date])))
I seperated the FORECAST parameters to make them clearer.
I mofidied the conditions of the second parameter. I assume the omission of -5 is a mistake. It is unusual for the two parameters to have different conditions.
Bookmarks