# Write excel data file with column with drop down list.

**URL:** <https://forum.knime.com/t/write-excel-data-file-with-column-with-drop-down-list/24937>\
**Category:** KNIME Analytics Platform\
**Created:** [June 30, 2020, 11:59am UTC](https://forum.knime.com/t/write-excel-data-file-with-column-with-drop-down-list/24937 "2020-06-30T11:59:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 30, 2020, 3:41pm UTC](https://forum.knime.com/t/write-excel-data-file-with-column-with-drop-down-list/24937/2 "2020-06-30T15:41:32Z")

</div>

Yes that is possible with the help of Python and [openpyxl](https://openpyxl.readthedocs.io/en/stable/validation.html)

![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/9/1998cf479e858b2f107f6e8c632d663aa6a2d310.png)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/0/20f827e6be5c6ed3efa902cc72b5761835deff8c.png)

> **[Write excel data file with column with drop down list – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/kn_example_python_excel_drop_down~3Ly39rhvI4T6aTTL/current-state)**
>
> Write excel data file with column with drop down list What to edit in the Python code https://forum.knime.com/t/create-a-column-with-drop-down-menu-list/73652/…

You could also check out this thread

> [@DataValidation Drop down list in Excel using Python Scrpt node](https://forum.knime.com/t/datavalidation-drop-down-list-in-excel-using-python-scrpt-node/12648/6):
>
> I attached a workflow that uses your example to create an Excel file via Python. And also one from the example from before. I think you have to provide the Python Script with a valid path (in this case I used the path of the workflow) and you have to close the file at the end. [image] [kn\_example\_python\_excel\_drop\_down.knwf](https://forum-cdn.knime.com/uploads/default/original/2X/3/3d87b7fc29d1017c801cafcd1bf67f72f7c49e9a.knwf) (21.4 KB) – Edit: [KNIME, Python and OpenPyxl](https://medium.com/low-code-for-advanced-data-science/knime-and-excel-an-overview-of-what-you-can-do-c6d400319745#8280)

–  
Edit: [KNIME and Excel — An Overview of What You Can Do | by Markus Lauber | Low Code for Data Science | Medium](https://medium.com/low-code-for-advanced-data-science/knime-and-excel-an-overview-of-what-you-can-do-c6d400319745#8280)

---

_[View the full topic](https://forum.knime.com/t/write-excel-data-file-with-column-with-drop-down-list/24937)._
