I'm having an issue with the following formula:
MonthOffset is just an integer, 72 in this case.
The above formula works fine with LINEST, rather than INTERCEPT. The issue is with the Column($AM$1) command which returns a {39} rather than just 39. It returns 39 if within the LINEST function. OFFSET returns a {#VALUE!} error if the width argument is in curly brackets.
When I pull the OFFSET part into its own cell, it works fine.
The full formula is:
Like I said before, the first half is working fine.
Does anyone have an idea of what's happening?
Code:
INTERCEPT(OFFSET($AM$6,0,0,1,MonthOffset-COLUMN($AM$6)+3),OFFSET($AM$1,0,0,1,MonthOffset-COLUMN($AM$1)+3))
MonthOffset is just an integer, 72 in this case.
The above formula works fine with LINEST, rather than INTERCEPT. The issue is with the Column($AM$1) command which returns a {39} rather than just 39. It returns 39 if within the LINEST function. OFFSET returns a {#VALUE!} error if the width argument is in curly brackets.
When I pull the OFFSET part into its own cell, it works fine.
The full formula is:
Code:
=LINEST(OFFSET($AM$6,0,0,1,MonthOffset-COLUMN($AM$6)+3),OFFSET($AM$6,0,0,1,MonthOffset-COLUMN($AM$6)+3))*D$1+INTERCEPT(OFFSET($AM$6,0,0,1,MonthOffset-COLUMN($AM$6)+3),OFFSET($AM$1,0,0,1,MonthOffset-COLUMN($AM$1)+3))
Like I said before, the first half is working fine.
Does anyone have an idea of what's happening?