Thanks a lot!
Another option to use N+INDEX instead of MMULT as a non array formula
=SLOPE(IF(N(INDEX((F3=B$3:B$21)*D$3:D$21,0))>0,D$3:D$21),(F3=B$3:B$21)*E$3:E$21)
Regards
Bosco
@xlstime i think this might be sufficient since SLOPE (along with INTERCEPT, RSQ and FORECAST) ignores entries that are not numeric in one or other argument.
=SLOPE(IF($B$3:$B$21=I3,$D$3:$D$21),$E$3:$E$21)
Entered using Ctrl+Shift+Enter.
(As others stated above insert either MMULT(...,1) or N(INDEX(...,)) inside IF(...,) to allow for normal entry.)
@xlstime admittedly that last response could have been clearer
I was merely wanting to point out that the second condition was not needed as SLOPE only takes into account the records where x and y values both contain numbers. (Note that this is not the case with the equivalent LINEST formula.)