こんばんは。
UiPath Studio 2024.10.4Community editionのユーザです。
Add DataRowアクティビティの列配列において、下記の構文で複数のTimeSpan変数の平均値を計算しています。 New Object(){kv.Key,TimeSpan.FromSeconds(Math.Round(arr_DataRow.Average(Function(r) TimeSpan.Parse(r("TimeSpan").ToString).TotalSeconds),0,MidpointRounding.AwayFromZero)).ToString}
New Object(){kv.Key,TimeSpan.FromSeconds(Math.Round(arr_DataRow.Average(Function(r) TimeSpan.Parse(r("TimeSpan").ToString).TotalSeconds),0,MidpointRounding.AwayFromZero)).ToString("hh:mm:ss")}
Since I uploaded the excel sheet, pls check by yourself. I could not find any symptom of error.
Data Source: average of blue cell of “Sheet2” ⇒ Result:blue cell of “Sheet1”
Data Source: average of yellow cell of “Sheet2” ⇒ Result:yellow cell of “Sheet1” OUTPUT.xlsx (33.5 KB)