Assuming you are looking to find the coefficients from a data set, you can
use the function "LINEST". For two columns of data (x in A column and y in B
column) and assuming 10 points of data (A1:B10):
Select 3 contiguous cells in a row. (i.e. C3:F3). Enter the following formula:
=LINEST(B1:B10,(A1:A10)^{1,2})
Press Ctrl-Shift-Enter. (Press these together or it won't work). Selecting
Cells C3:F3 afterwords and then clicking on the formula displayed above will
highlight the selected "X" and "Y" cells. You can drag the bottom right
corner of each area to include more or less data as desired. If LINEST covers
empty cells it will not work.
The other way is to use the X-Y graphing function, adding a trendline and
then displaying the equation. Add trendlines by right clicking the graphed
data set. Right-clicking on the displayed equation gives you the ability to
change the format to a number and increasing the values past the decimal to
increase accuracy of the equation. LINEST does this automatically without
needing a graph.
C3 will have the A value, D3 will have the B value and F3 will be C.