This is sort of a dirty solution but you place your x data in the array starting at f9:0 and the corrosponding y data in F10:0. Then you place the number of data points in N7:1. Call the routine and it returns A in f11:12 and B in F11:16. Use the equation y = A + Bx for your curve fitting.
I...