if you are looking at a linear regression line (straight line) you could try the forecast formula
=forecast(X, Known Ys, Known Xs)
you could also build your own equation automatically from 
=linest(...)
I found the following on a site describing the capabilities of the linest function in excel: 
In addition to using LOGEST to calculate statistics for other
  regression types, you can use LINEST to calculate a range of other
  regression types by entering functions of the x and y variables as the
  x and y series for LINEST. For example, the following formula: 
=LINEST(yvalues, xvalues^COLUMN($A:$C))
works when you have a single column of y-values and a single column of
  x-values to calculate the cubic (polynomial of order 3) approximation
  of the form:
y = m1*x + m2*x^2 + m3*x^3 + b
You can adjust this formula to calculate other types of regression,
  but in some cases it requires the adjustment of the output values and
  other statistics.
or look at:
=trend