# How to split Data table

**URL:** <https://forum.uipath.com/t/how-to-split-data-table/396587>\
**Category:** Studio\
**Tags:** string, selector, activities-panel, data-scraping, web, datatable, question, studio, orchestrator, activities, excel\
**Created:** [February 3, 2022, 5:23pm UTC](https://forum.uipath.com/t/how-to-split-data-table/396587 "2022-02-03T17:23:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shikhar\_Tandon](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/shikhar_tandon/32/176817_2.png) [@Shikhar\_Tandon](https://forum.uipath.com/u/Shikhar_Tandon)\
**Post date:** [February 3, 2022, 5:27pm UTC](https://forum.uipath.com/t/how-to-split-data-table/396587/2 "2022-02-03T17:27:01Z")

</div>

Hi @bpt.teja1996 ,

> [@Split Datatable into 4 different tables](https://forum.uipath.com/t/split-datatable-into-4-different-tables/284608/4):
>
> @thomasb82 lets assume following variables: NoOfSegments is indicating how many splits we do want have Doing an integer division to find out how many rows will be in a split (we cannot fetch a rows count with fractions e.g. 14.25 rows [grafik] with following LINQ we can produce a list of datatables with the splits: [grafik] (From i In Enumerable.Range(0,NoOfSegments) Let opart = dtData.AsEnumerable.Skip(i\*FullSegmentSize).toList Let spart = If(i = (NoOfSegments - 1), opart, opa…

Check the above link if that helps you.

Cheers!!

---

_[View the full topic](https://forum.uipath.com/t/how-to-split-data-table/396587)._
