-
First use Read Range activity to read the data from Excel and will give you output as Datatable and say DT.
-
And then try below expression.
String sumOfColumn = DT.AsEnumerable.Sum(Function(x) Convert.ToDouble(x(“ColumnName”).ToString.Trim) ).ToString
-
And then write into excel file.
5 Likes