I am facing a problem while making Excel\'s LinEST function.
My program goes like
MyExcel.Application xl = new MyExcel.Application();
MyExcel.Workshe
Convert the lists x and y to array :
MyExcel.Application xl = new MyExcel.Application();
MyExcel.WorksheetFunction wsf = xl.WorksheetFunction;
List x = new List { 1, 2, 3, 4 };
List y = new List { 11, 12, 45, 42 };
//object o = wsf.LinEst(x, y, true, true);
object o = wsf.LinEst(y.ToArray(), x.ToArray(), false, true);