# Moving specific cells within rows to new columns

**URL:** <https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206>\
**Category:** Data cleaning and transformations\
**Created:** [November 30, 2022, 9:58am UTC](https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206 "2022-11-30T09:58:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Padraic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/padraic/32/148_2.png) [@Padraic](https://forum.openrefine.org/u/Padraic)\
**Post date:** [November 30, 2022, 9:58am UTC](https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206/1 "2022-11-30T09:58:16Z")

</div>

Hi folks,

This is probably a very basic question. I hope it’s ok to ask here.

I am using OpenRefine 3.6.2 and [Stuart Kenny’s NER Extension](https://github.com/stkenny/Refine-NER-Extension). They both work fine.

I am working on a spreadsheet of Dublin Core records, trying to extract people and placenames from the freetext description field. In this screenshot you can see that the Stanford NLP tool is pretty good at doing that.

 ![record_row](https://europe1.discourse-cdn.com/flex017/uploads/openrefine/original/1X/93601cd3976763cb2fd81f69e9cf1fccde880533.png)

I am going to do some work on reconciling and cleaning up those results. When complete I need to have a csv with single row per record.

Once I finish cleaning and reconciling how do I get the cells in the ‘Stanford NLP’ rows into new ‘subject’ columns on the same row as the rest of the record?

---

<div class="post-metadata">

**Author:** ![ostephens](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/ostephens/32/8_2.png) [@ostephens](https://forum.openrefine.org/u/ostephens)\
**Post date:** [November 30, 2022, 10:41am UTC](https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206/2 "2022-11-30T10:41:44Z")

</div>

Hi Padraic,

Just some clarification questions:

1. Is it the data in the new “Stanford NLP” column that you are reconciling?
2. At the end are you looking for a row with multiple “Subject” columns, with each subject column containing reconciled cells? Or once you’ve done the reconciliation are you only interested in the reconciled entity label or ID?

I’m asking these questions because rearranging reconciled cells, including all of the information obtained through the reconciliation process (like the matches made, the remote service ID etc.) is a slightly different task to just moving around plain values - so it’s important to know exactly the required outcome before advising on the best method here

Best wishes

Owen

---

<div class="post-metadata">

**Author:** ![Padraic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/padraic/32/148_2.png) [@Padraic](https://forum.openrefine.org/u/Padraic)\
**Post date:** [November 30, 2022, 11:36am UTC](https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206/3 "2022-11-30T11:36:53Z")

</div>

Hi Owen,

Thanks for coming back to me.

1. Yes.
2. Good question. It might be one, or the other, or even both depending on the results. I was thinking of using reconciliation to just divide entries in the Stanford NLP column into say people and places in which case I might just move the plain value. However if the reconciled service URI something the DRI can accept and display then it wouldn’t make sense to lose that information.

I guess I am getting a bit ahead of myself. Once I know that the information can be moved around that’s the important thing.

I’ll get going with reconciling and cleaning up and refresh this question when I have a concrete.example.

---

<div class="post-metadata">

**Author:** ![ostephens](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/ostephens/32/8_2.png) [@ostephens](https://forum.openrefine.org/u/ostephens)\
**Post date:** [November 30, 2022, 11:45am UTC](https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206/4 "2022-11-30T11:45:44Z")

</div>

OK.  
I’ll just note that getting a list of plain values (or a set of plain values) from a column to a row is, in my experience, more straightforward than moving cells complete with all the reconciliation data. But I think both can be achieved.

---

<div class="post-metadata">

**Author:** ![thadguidry](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/thadguidry/32/653_2.png) [@thadguidry](https://forum.openrefine.org/u/thadguidry)\
**Post date:** [December 1, 2022, 5:23am UTC](https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206/5 "2022-12-01T05:23:13Z")

</div>

What is DRI? Is this a system you will be exporting the records into? Rearranging records into different structures depends on which system you might be exporting into. Giving us the system you plan to export into will help @ostephens and others to give you the structure you might need in OpenRefine’s rows and records for export.

---

<div class="post-metadata">

**Author:** ![Padraic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/padraic/32/148_2.png) [@Padraic](https://forum.openrefine.org/u/Padraic)\
**Post date:** [December 1, 2022, 12:46pm UTC](https://forum.openrefine.org/t/moving-specific-cells-within-rows-to-new-columns/206/6 "2022-12-01T12:46:12Z")

</div>

Hi Thad, thanks for the response.

The DRI is the [Digital Repository of Ireland](https://dri.ie/). Apologies, I thought that I had linked the website when I mentioned it above.

I’ll post about the record structure when I get a bit further along in the process.

Thanks again!
