HowTo Write a Custom Excel Function with VBA
Use Excel’s LINEST to Extract Coefficients from a Trendline