I have some values in Excel in hh:mm format. I need to find some of the all hh:mm type variables(First column). Sample Excel attched
Book1.xlsx (8.0 KB)
Hi @BNK ,
Step1: Read the file as InputDT
Step2: Use Assign Activity
outTotal = InputDT.AsEnumerable.Sum(function(x) Cdbl(TimeSpan.Parse(CurrentRow(“Total”).ToString).Hours))
I need Total hours
Hi @BNK ,
Can you try this you will total hours from this expression
Step1: Read the file as InputDT
Step2: Use Assign Activity
outTotal = InputDT.AsEnumerable.Sum(function(x) Cdbl(TimeSpan.Parse(CurrentRow(“Total”).ToString).Hours))
@BNK
Just change the last write range
TotalTime.TotalHours.ToString
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.