Read the excel sheet data in the datatable variable name dt.
Create a new variable of type datatable and variable name dt2.
In assign give dt2 = dt.clone
In write range activity give sheet name as “output” and datatable as below,
(From dtRow in dt.asenumerable
Group dtRow by k = dtRow("City").tostring.trim into grp = Group
Let val = string.join(Environment.newline,grp.select(function(d) d("time").tostring).toarray)
Select dt2.rows.add({grp(0)(0),grp(0)(1),val})).copytodatatable