I don't know what your formula does. If you want a linear trend, in AM2 and copy down and across,

=TREND($G2:$AL2, $G$1:$AL$1, AM$1)