# Split variable in Excel

**URL:** <https://forum.uipath.com/t/split-variable-in-excel/71863>\
**Category:** Help\
**Tags:** excel, activities\
**Created:** [October 23, 2018, 1:32am UTC](https://forum.uipath.com/t/split-variable-in-excel/71863 "2018-10-23T01:32:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chenzhixing.PRC](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@Chenzhixing.PRC](https://forum.uipath.com/u/Chenzhixing.PRC)\
**Post date:** [October 23, 2018, 1:32am UTC](https://forum.uipath.com/t/split-variable-in-excel/71863/1 "2018-10-23T01:32:27Z")

</div>

Dear friends  
I want split the variable 10/15/2018/ 00:00:00 in one Excel cell,but I only want select the 15 to use  
what activity I can use to solve it  
Thank your for your help.

---

<div class="post-metadata">

**Author:** ![Manjuts90](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/manjuts90/32/176617_2.png) [@Manjuts90](https://forum.uipath.com/u/Manjuts90)\
**Post date:** [October 23, 2018, 1:38am UTC](https://forum.uipath.com/t/split-variable-in-excel/71863/2 "2018-10-23T01:38:00Z")

</div>

@Chenzhixing.PRC Use below command it will be useful. After getting value from excel convert it to string datatype and then use below thing.

Split(UrStringVariable,“/”)(1)

---

<div class="post-metadata">

**Author:** ![Pankaj.Patil](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@Pankaj.Patil](https://forum.uipath.com/u/Pankaj.Patil)\
**Post date:** [October 23, 2018, 1:42am UTC](https://forum.uipath.com/t/split-variable-in-excel/71863/3 "2018-10-23T01:42:09Z")

</div>

Hello,

Use substring() method to get only 15 from string.  
str1.Substring(3,2)

Cheers,  
Pankaj

---

<div class="post-metadata">

**Author:** ![Chenzhixing.PRC](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@Chenzhixing.PRC](https://forum.uipath.com/u/Chenzhixing.PRC)\
**Post date:** [October 23, 2018, 1:43am UTC](https://forum.uipath.com/t/split-variable-in-excel/71863/4 "2018-10-23T01:43:48Z")

</div>

thank you for your help  
solve it !!!

---

<div class="post-metadata">

**Author:** ![Manjuts90](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/manjuts90/32/176617_2.png) [@Manjuts90](https://forum.uipath.com/u/Manjuts90)\
**Post date:** [October 23, 2018, 1:46am UTC](https://forum.uipath.com/t/split-variable-in-excel/71863/5 "2018-10-23T01:46:27Z")

</div>

@Chenzhixing.PRC if you found the solution close the thread by marking solution.
