# Excel Sheet Modification

**URL:** <https://forum.uipath.com/t/excel-sheet-modification/467484>\
**Category:** Activities\
**Tags:** question, excel, activities\
**Created:** [August 24, 2022, 5:42am UTC](https://forum.uipath.com/t/excel-sheet-modification/467484 "2022-08-24T05:42:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunain\_chahar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sunain_chahar/32/254544_2.png) [@sunain\_chahar](https://forum.uipath.com/u/sunain_chahar)\
**Post date:** [August 24, 2022, 5:42am UTC](https://forum.uipath.com/t/excel-sheet-modification/467484/1 "2022-08-24T05:42:32Z")

</div>

[Code.xlsx](https://forum.uipath.com/uploads/short-url/mOJGAXw1CAL3STt1vruL0hIbx7k.xlsx) (8.5 KB)  
Uploaded excel sheet Contains 3 column (Sold to party , bill doc, invoice no. ), as we can see in image of the there are multiple invoice no for same bill doc. can we modify the sheet to certain output like slash in image  
 ![input_file](https://global.discourse-cdn.com/uipath/original/4X/4/c/3/4c369fea143405a6ab19308caf69758a9dc2a390.jpeg)  
 ![output](https://global.discourse-cdn.com/uipath/original/4X/7/e/7/7e7608241cdce883f3e98a27b4afd611ab39654b.jpeg)

---

<div class="post-metadata">

**Author:** ![kumar.varun2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kumar.varun2/32/215924_2.png) [@kumar.varun2](https://forum.uipath.com/u/kumar.varun2)\
**Post date:** [August 24, 2022, 7:03am UTC](https://forum.uipath.com/t/excel-sheet-modification/467484/2 "2022-08-24T07:03:44Z")

</div>

Hi @sunain_chahar

Try this approach

 ![image](https://global.discourse-cdn.com/uipath/original/4X/a/3/f/a3fc412bd617032087a11dd46e454a3862e84c8b.png)

dt\_Output=

```auto
(
	From row In dt_Data
	Group row By
	k1= row("Sold to party").ToString.Trim,
	k2=row("Bill doc").ToString.Trim
	Into grp=Group
	Select dt_Data.LoadDataRow({k1, k2, String.Join("/", grp.Select(Function(gr) gr("invoice no").ToString.Trim))}, True)
).CopyToDataTable

```

Output

 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/c/1/fc1a5b4e2c6b173fddc5ce351261293b95418f12.png)

Please refer the xaml

[LINQ\_GroupByConcatColumnValue.xaml](https://forum.uipath.com/uploads/short-url/abj1QovlRULYTNBNu9ihT0eBI7D.xaml) (5.4 KB)

> [@\[HowTo\] LINQ (VB.Net) Learning Catalogue](https://forum.uipath.com/t/howto-linq-vb-net-learning-catalogue/325671):
>
> This topic references the different Learning HowTos related to LINQ. It will be updated on new published HowTos as well LINQ Learning: Topic LINK First Start with LINQ [[HowTo] - First Start with LINQ (VB.Net)](https://forum.uipath.com/t/howto-first-start-with-linq-vb-net/318964/) Exploring the LINQ universe [[HowTo] - Exploring the LINQ Universe (VB.Net)](https://forum.uipath.com/t/howto-exploring-the-linq-universe-vb-net/325667)Operator [HowTo] Overview Topic LINK Where [[HowTo] LINQ - First Start # Where Operator](https://forum.uipath.com/t/howto-linq-first-start-where-operator/464108) Select work in progress Any [[HowTo] LINQ – First Start # Any Operator](https://forum.uipath.com/t/howto-linq-first-start-any-operator/466138) All [[HowTo] LINQ – First Start…](https://forum.uipath.com/t/howto-linq-first-start-all-operator/467292)

---

<div class="post-metadata">

**Author:** ![sunain\_chahar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sunain_chahar/32/254544_2.png) [@sunain\_chahar](https://forum.uipath.com/u/sunain_chahar)\
**Post date:** [August 24, 2022, 7:58am UTC](https://forum.uipath.com/t/excel-sheet-modification/467484/3 "2022-08-24T07:58:35Z")

</div>

thanks a lot it works

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [August 27, 2022, 7:58am UTC](https://forum.uipath.com/t/excel-sheet-modification/467484/4 "2022-08-27T07:58:51Z")

</div>

Closed on August 27, 2022, 7:58am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
