# Excel Writer / Sheet Appender with Excel Formulas

**URL:** <https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904>\
**Category:** KNIME Analytics Platform\
**Created:** [July 18, 2019, 7:58pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904 "2019-07-18T19:58:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![KunalB86](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/dec6dc/32.png) [@KunalB86](https://forum.knime.com/u/KunalB86)\
**Post date:** [July 18, 2019, 7:58pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/1 "2019-07-18T19:58:06Z")

</div>

Hello, I’m using Table Creator to write excel formulas (vlookups to existing sheets) and would like to output them to Excel. Though when I use the existing excel writing nodes, the cells with formulas don’t execute, they are stagnant data values.

Has anyone been able to export excel formulas??

Thank you

---

<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:** [July 18, 2019, 8:21pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/2 "2019-07-18T20:21:02Z")

</div>

Kunal, even though you can save formulas to Excel as text to be run they need to be changed to the type general. You can do necessary connections between data in KNIME directly. Or, create data and formula sheets in excel and populate from KNIME only data sheet.

---

<div class="post-metadata">

**Author:** ![KunalB86](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/dec6dc/32.png) [@KunalB86](https://forum.knime.com/u/KunalB86)\
**Post date:** [July 18, 2019, 8:33pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/3 "2019-07-18T20:33:14Z")

</div>

Hi izaychik63, thanks for your response. Once I output to Excel the type is already General, however the formulas don’t execute. I’m not sure I understand “Or, create data and formula sheets in excel and populate from KNIME only data sheet.” this solution, could you walk me through an example?

---

<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:** [July 18, 2019, 8:44pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/4 "2019-07-18T20:44:41Z")

</div>

It is not clear why you use KNIME to populate formulas in Excel? You can use your car as nut cracker too but over tools are cheaper. KNIME by itself cannot update Excel sheets just replace them. So, if you have permanent calculation but changing data you can place formulas referencing data on one sheet and data on the different one. For lookup you can use Join node in KNIME and export ready result to Excel. Just my recommendation.

---

<div class="post-metadata">

**Author:** ![KunalB86](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/dec6dc/32.png) [@KunalB86](https://forum.knime.com/u/KunalB86)\
**Post date:** [July 18, 2019, 8:48pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/5 "2019-07-18T20:48:39Z")

</div>

Thanks for the response, however after all the manipulation of the data in Knime, the report is going to another employee who will manually change the data in one sheet. I’m trying to pull in his changes to an area in the sheets I’ve created in knime. Because of this second user manually updated data, I need to be able to write formulas and have them execute…

---

<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:** [July 18, 2019, 8:51pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/6 "2019-07-18T20:51:54Z")

</div>

Could you provide an example of the data you receiving and the final result with formulas?

---

<div class="post-metadata">

**Author:** ![KunalB86](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/dec6dc/32.png) [@KunalB86](https://forum.knime.com/u/KunalB86)\
**Post date:** [July 18, 2019, 8:54pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/7 "2019-07-18T20:54:53Z")

</div>

So for example, the formula I’ve written in the cell of the table creator is =VLOOKUP($D$8,SHEETNAME!$B:$X,3,FALSE), however when writing this to excel, it simply shows this formula in the cell vs executing the formula. This is the issue

---

<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:** [July 19, 2019, 4:38am UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/8 "2019-07-19T04:38:25Z")

</div>

In this entry I discussed several possibilities how to bring formulas from knime to excel. Unfortunately they involve using Python. But it is possible.

> [@Excel Reader dumps formulas](https://forum.knime.com/t/excel-reader-dumps-formulas/14672/2):
>
> The KNIME import and Export function cannot deal with Excel functions themselves. You can only get the results. If you want to preserve or restore Excel functions you have to either: use them on a sheet you would not touch with KNIME, Formulas that might refer to a ‘simple’ data sheet you would im- and export to and from KNIME use a Python package like [openpyxl](https://openpyxl.readthedocs.io/en/stable/) or R [readxl](https://forum.knime.com/t/how-to-force-column-data-type-in-excel-reader-xls-node/9088/8) Python Excel manipulation Python Excel table object

---

<div class="post-metadata">

**Author:** ![KunalB86](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/dec6dc/32.png) [@KunalB86](https://forum.knime.com/u/KunalB86)\
**Post date:** [July 19, 2019, 4:02pm UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/9 "2019-07-19T16:02:28Z")

</div>

Thanks for this reply, I will look into the solution

---

<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:** [January 18, 2020, 4:02am UTC](https://forum.knime.com/t/excel-writer-sheet-appender-with-excel-formulas/16904/10 "2020-01-18T04:02:35Z")

</div>

Closed on January 18, 2020, 4:02am UTC

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