# How to read/write value in specify cell ?#excel

**URL:** <https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863>\
**Category:** KNIME Analytics Platform\
**Created:** [December 4, 2021, 2:23pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863 "2021-12-04T14:23:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubyWu](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@RubyWu](https://forum.knime.com/u/RubyWu)\
**Post date:** [December 4, 2021, 2:23pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/1 "2021-12-04T14:23:08Z")

</div>

Hi all.  
i’m wonder if there is any node or expression can read or wirte value into as specify cell  
i mean if we know the coordinate like columnindex and rowindex  
Thanks

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [December 4, 2021, 2:29pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/2 "2021-12-04T14:29:35Z")

</div>

@RubyWu you could use [Python](https://hub.knime.com/mlauber71/spaces/Public/latest/_knime_and_python_meta_collection~AvjrddXKOIoZYLV3) packages like [openpyxl](https://hub.knime.com/search?q=Openpyxl&type=Workflow) to manipulate [Excel](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_excel_import_meta_workflow~BxiMlBJ2jYCPlZnS) files like in this example:

> [@Write excel data file with column with drop down list.](https://forum.knime.com/t/write-excel-data-file-with-column-with-drop-down-list/24937/2):
>
> Yes that is possible with the help of Python and [openpyxl](https://openpyxl.readthedocs.io/en/stable/validation.html) [image] You could also check out this thread

---

<div class="post-metadata">

**Author:** ![aworker](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aworker/32/36421_2.png) [@aworker](https://forum.knime.com/u/aworker)\
**Post date:** [December 4, 2021, 4:39pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/3 "2021-12-04T16:39:46Z")

</div>

Hi @RubyWu

Complementary to @mlauber71 information, may be next coming version (KNIME Analytics Platform Nightly Build 4.5.0) has a node to achieve that:

[https://www.knime.com/nightly-build-changelog](https://www.knime.com/nightly-build-changelog)

AP-16621: Excel Cell Updater

I would be grateful too if a KNIME Team member could tell us a bit more about may be this incoming new node ?

Best

Ael

---

<div class="post-metadata">

**Author:** ![takbb](https://forum-cdn.knime.com/user_avatar/forum.knime.com/takbb/32/57077_2.png) [@takbb](https://forum.knime.com/u/takbb)\
**Post date:** [December 5, 2021, 12:24am UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/4 "2021-12-05T00:24:51Z")

</div>

Hi @RubyWu,

In terms of writing to excel, you may also find the following thread of interest

> [@How can I input data in an particular cell of excel sheet say Sheet 2 Cell : B5](https://forum.knime.com/t/how-can-i-input-data-in-an-particular-cell-of-excel-sheet-say-sheet-2-cell-b5/32035):
>
> For Example : I want to put number 124 from an table created into an excel sheet 2 cell B5 How can I do so

---

<div class="post-metadata">

**Author:** ![RubyWu](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@RubyWu](https://forum.knime.com/u/RubyWu)\
**Post date:** [December 5, 2021, 2:22pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/5 "2021-12-05T14:22:34Z")

</div>

Hi @mlauber71 ， Thanks for the example, i 'm learning Python and it may take me some time to figure all the steps out  
Thanks

---

<div class="post-metadata">

**Author:** ![RubyWu](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@RubyWu](https://forum.knime.com/u/RubyWu)\
**Post date:** [December 5, 2021, 2:23pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/6 "2021-12-05T14:23:12Z")

</div>

Thanks for the info, looking forward/!!!

---

<div class="post-metadata">

**Author:** ![RubyWu](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@RubyWu](https://forum.knime.com/u/RubyWu)\
**Post date:** [December 5, 2021, 2:25pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/7 "2021-12-05T14:25:31Z")

</div>

Hi @takbb , Thanks for the solution. I use anther node from this package called . Great help,Thanks!

---

<div class="post-metadata">

**Author:** ![tobias.koetter](https://forum-cdn.knime.com/user_avatar/forum.knime.com/tobias.koetter/32/56844_2.png) [@tobias.koetter](https://forum.knime.com/u/tobias.koetter)\
**Post date:** [December 6, 2021, 2:55pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/8 "2021-12-06T14:55:12Z")

</div>

Hello @aworker ,  
the Excel Cell Updater node will indeed allow you to write to a specific cell in an existing Excel Sheet and will be released with KNIME Analytics Platform 4.5 today 🙂

The node input is a table with the cell coordinate to update and the value to write. In the node dialog you will select the Excel file to write to.

 ![ExcelUpdater](https://forum-cdn.knime.com/uploads/default/original/3X/d/9/d967cb5b4585a65621cf809d0a1fafc917d0ad04.png)

If you want to know more about the node check out the What’s new or come to the [KNIME Release Data Talk](https://datatalks.knime.com/2021-release) this Thursday.

Let us know what you think about the node.

Bye  
Tobias

---

<div class="post-metadata">

**Author:** ![AnotherFraudUser](https://forum-cdn.knime.com/user_avatar/forum.knime.com/anotherfrauduser/32/16912_2.png) [@AnotherFraudUser](https://forum.knime.com/u/AnotherFraudUser)\
**Post date:** [December 6, 2021, 3:27pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/9 "2021-12-06T15:27:35Z")

</div>

Hi @tobias.koetter,

thanks for the info! 🙂  
Is there a default node in KNIME to handle the transform from a table/row to the required format for the Excel Cell Updater node?  
I added a own transformation node to my extension but was wondering if I just missed something 🤔

Anyways the Cell Updater is a great addition - I look forward to using it 👍

---

<div class="post-metadata">

**Author:** ![aworker](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aworker/32/36421_2.png) [@aworker](https://forum.knime.com/u/aworker)\
**Post date:** [December 6, 2021, 3:53pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/10 "2021-12-06T15:53:30Z")

</div>

Hi @tobias.koetter

Thanks for your prompt reply and for sharing with us these great news. I look forward to trying it and definitely will provide the forum with feedback.

Thanks again and looking forward too to participating this Thursday to the incoming KNIME Release Data Talks 😃 !

Best regards,

Ael

---

<div class="post-metadata">

**Author:** ![tobias.koetter](https://forum-cdn.knime.com/user_avatar/forum.knime.com/tobias.koetter/32/56844_2.png) [@tobias.koetter](https://forum.knime.com/u/tobias.koetter)\
**Post date:** [December 6, 2021, 4:18pm UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/11 "2021-12-06T16:18:14Z")

</div>

Hello @AnotherFraudUser ,  
on my list is a component that would help to transform a value table into the format required by the [Excel Cell Updater](https://kni.me/n/pfKae1pgEo_UWX2K) node. Any help here is very welcome 🙂 The node also supports numeric coordinates e.g. 1:1 is cell A1 and 2:3 for cell B3 etc. to make it easier to automatically generate the cell coordinates.

We have an Excel Table Inserter node on the list for the next release that would allow you to insert a complete table and in the node dialog you would specify the top left corner where the table should be inserted to. For example, if you have an input table with 2 rows and 2 columns and you specify A1 as top left corner the values would be inserted into A1, A2, B1, B2. Please let me know if you have any other ideas or questions regarding these nodes.  
Bye  
Tobias

---

<div class="post-metadata">

**Author:** ![RubyWu](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@RubyWu](https://forum.knime.com/u/RubyWu)\
**Post date:** [December 7, 2021, 12:54am UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/12 "2021-12-07T00:54:15Z")

</div>

Hi @tobias.koetter .Many thanks for the explaination of this new node!~ Looking forward for the release talk~!

---

<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:** [December 14, 2021, 12:54am UTC](https://forum.knime.com/t/how-to-read-write-value-in-specify-cell-excel/37863/13 "2021-12-14T00:54:41Z")

</div>

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