I have one doubt
in a excel file, there are 22 sheets
the 21 sheets data should sum and should enter in summary sheet
while iam reading the sheets, the summary sheet is also reading how can i ignore that sheet
how to ignore particular sheet
In For each excel sheet Use if condition in that Currentsheet.contains(“Summary”) in that perform your necessary actions
I want to ignore the summary sheet
Use if condition and if the currentsheet.name is the name of summay then dont do sum
Did you give Total Stock? I see you have value instead
Cheers
the total value column should be sum
Try to use the formula like this
Dt.AsEnumerable.Sum(function(x) If(IsNumeric(x("ColumnName").ToString), CDBL(x("ColumnName").ToString),0)).ToString
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.