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<int> x = new List<int> { 1, 2, 3, 4 };
List<int> y = new List<int> { 11, 12, 45, 42 };
//object o = wsf.LinEst(x, y, true, true);
object o = wsf.LinEst(y.ToArray(), x.ToArray(), false, true);