# Split cell into rows

**URL:** <https://forum.knime.com/t/split-cell-into-rows/11398>\
**Category:** KNIME Analytics Platform\
**Created:** [June 26, 2018, 5:49pm UTC](https://forum.knime.com/t/split-cell-into-rows/11398 "2018-06-26T17:49:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![serendipitytech](https://forum-cdn.knime.com/user_avatar/forum.knime.com/serendipitytech/32/1778_2.png) [@serendipitytech](https://forum.knime.com/u/serendipitytech)\
**Post date:** [June 26, 2018, 5:49pm UTC](https://forum.knime.com/t/split-cell-into-rows/11398/1 "2018-06-26T17:49:39Z")

</div>

I’ve got a text file that contains rows like this:  
5633509 abstandardguids 1c2dc678-7053-11df-8ebf-be719dff4b22,1d470ac4-7053-11df-8ebf-be719dff4b22,1d2f3e58-7053-11df-8ebf-be719dff4b22

The third column is a series of GUIDs separated by commas, could be 1, could be 20 or more. I need to transofrm that into:  
5633509 abstandardguids 1c2dc678-7053-11df-8ebf-be719dff4b22  
5633509 abstandardguids 1d470ac4-7053-11df-8ebf-be719dff4b22  
5633509 abstandardguids 1d2f3e58-7053-11df-8ebf-be719dff4b22

I was thinking the pivot would do this, but I’m not getting that output. Hoping there’s a trick I’m missing or maybe a different tool I should use?

---

<div class="post-metadata">

**Author:** ![izaychik63](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/i/e9a140/32.png) [@izaychik63](https://forum.knime.com/u/izaychik63)\
**Post date:** [June 26, 2018, 6:22pm UTC](https://forum.knime.com/t/split-cell-into-rows/11398/2 "2018-06-26T18:22:15Z")

</div>

Use Cell Splitter first to put GUIDs in separate columns then use unpivot on GUIDs to get what you need.

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [June 26, 2018, 6:28pm UTC](https://forum.knime.com/t/split-cell-into-rows/11398/3 "2018-06-26T18:28:49Z")

</div>

Try this example workflow. It uses the **Cell Splitter** and **Unpivoting** nodes, and then some filtering to get rid of unneeded fields and missing values. (I added an extra row of dummy data to make sure it would handle multiple GUIDs correctly.)

 ![2018-06-26%2013_27_32-KNIME%20Analytics%20Platform](https://forum-cdn.knime.com/uploads/default/original/2X/b/bff87a518d316271a52c780cedb7af79c6c670be.png)  
 ![2018-06-26%2013_27_45-Filtered%20-%202_12%20-%20Row%20Filter%20(Filter%20missing)](https://forum-cdn.knime.com/uploads/default/original/2X/4/4a8613fee88f6ee7e773aaa51524f40a58bf50f1.png)

[UnpivotingExample.knwf](https://forum-cdn.knime.com/uploads/default/original/2X/0/0acaad01adb4dcf160bd2f5fce83a385e7ce9482.knwf) (14.2 KB)

---

<div class="post-metadata">

**Author:** ![serendipitytech](https://forum-cdn.knime.com/user_avatar/forum.knime.com/serendipitytech/32/1778_2.png) [@serendipitytech](https://forum.knime.com/u/serendipitytech)\
**Post date:** [June 26, 2018, 9:42pm UTC](https://forum.knime.com/t/split-cell-into-rows/11398/4 "2018-06-26T21:42:06Z")

</div>

Unpivoting! Wow, that one totally wasn’t on my radar.

Thank you so much for the quick response!

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:29pm UTC](https://forum.knime.com/t/split-cell-into-rows/11398/5 "2023-06-23T20:29:59Z")

</div>

Closed on June 23, 2023, 8:29pm UTC


