If all you want is c1 and c0, the SLOPE and INTERCEPT functions are more direct than LINEST.
Reeka, let's assume that cells A1:B3 contains
{"X","Y";2,5.5;1,3} and you select cells D1:E1,
type LINEST(B2:B3,A2:A3)) and press Shift+Ctrl+Enter.
Cells D1:E1 will contain a single array formula,
{=LINEST(B2:B3,A2:A3))} which produces the slope (in
cell D1) and the y-intercept in cell (E1). These
are your "c1" and "c0" values respectively.
Ok: Mark
i did what you gave as an example an i got a value in D1 and #VALUE in E1. Is thsi correct? if it is than i get it. ANother thing is how do you apply this to multiple regression like when you have to figure out n5,n4,n3,n2,n1,n0....
Thanks everyone for helping me.
Reeka, if I was a betting man -- and I am -- I'd
guess that you didn't hold down the both the Shift
and Ctrl keys when you pressed the Enter key. Select
D1:E1 and try again.
Not being a statistician I'd must recommend that you
look at the Excel Help Topic for "regression".
Oh, now I understand what you mean when you ask about
multiple regression. Take a look at Example 3 in
the Help topic for "LINEST worksheet function.
Reeka, I sense that you may not be all that familiar
with array formulae. Take a look at the Excel Help
Topic for "About array formulas and how to enter them".