# Add Excel file name while reading multiple files with "Include subfolders” option

**URL:** <https://forum.knime.com/t/add-excel-file-name-while-reading-multiple-files-with-include-subfolders-option/72905>\
**Category:** KNIME Analytics Platform\
**Created:** [September 24, 2023, 9:24pm UTC](https://forum.knime.com/t/add-excel-file-name-while-reading-multiple-files-with-include-subfolders-option/72905 "2023-09-24T21:24:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauuuuu5](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mauuuuu5/32/351_2.png) [@mauuuuu5](https://forum.knime.com/u/mauuuuu5)\
**Post date:** [September 24, 2023, 9:24pm UTC](https://forum.knime.com/t/add-excel-file-name-while-reading-multiple-files-with-include-subfolders-option/72905/1 "2023-09-24T21:24:06Z")

</div>

Hi everyone, I am trying to add the excel file names as a new constant value (along with the file data) when using the “Include subfolders” option in the Excel Reader

![image](https://forum-cdn.knime.com/uploads/default/original/3X/5/3/5328863c62895f4d5358c7b7a037e54afb92938b.png)

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

I know that there are other [examples](https://forum.knime.com/t/can-knime-help-me-input-words-in-excel-automatically/25071/4), but I wonder if there is a more recent approach using the Excel Reader node.

Thank you

---

<div class="post-metadata">

**Author:** ![iCFO](https://forum-cdn.knime.com/user_avatar/forum.knime.com/icfo/32/36036_2.png) [@iCFO](https://forum.knime.com/u/iCFO)\
**Post date:** [September 24, 2023, 9:39pm UTC](https://forum.knime.com/t/add-excel-file-name-while-reading-multiple-files-with-include-subfolders-option/72905/2 "2023-09-24T21:39:13Z")

</div>

If you include sub folders, then you would use the “filter options” to pinpoint specific file names. You can’t point the node directly to multiple full file paths. However, you can alternatively bring in multiple full file paths as flow variables if you are unable to make the filter options work.

---

<div class="post-metadata">

**Author:** ![mauuuuu5](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mauuuuu5/32/351_2.png) [@mauuuuu5](https://forum.knime.com/u/mauuuuu5)\
**Post date:** [September 24, 2023, 11:53pm UTC](https://forum.knime.com/t/add-excel-file-name-while-reading-multiple-files-with-include-subfolders-option/72905/3 "2023-09-24T23:53:27Z")

</div>

Hi thank you, I just came up with a similar [solution](https://forum.knime.com/t/can-knime-help-me-input-words-in-excel-automatically/25071/4) as mentioned above.

[Multiple Files add Name.knwf](https://forum.knime.com/uploads/short-url/nMPYTePQ9ZjN38rblgar7WIWXTs.knwf) (40.8 KB)

Regards

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [September 25, 2023, 7:06am UTC](https://forum.knime.com/t/add-excel-file-name-while-reading-multiple-files-with-include-subfolders-option/72905/4 "2023-09-25T07:06:35Z")

</div>

Hello @mauuuuu5,

in Excel Reader under _Advanced Settings_ tab there is option Append path column. Using Column Expressions you can then extract file name. With this approach you simplify workflow design and avoid loop.

Br,  
Ivan

---

<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:** [October 2, 2023, 7:06am UTC](https://forum.knime.com/t/add-excel-file-name-while-reading-multiple-files-with-include-subfolders-option/72905/5 "2023-10-02T07:06:59Z")

</div>

Closed on October 2, 2023, 7:06am UTC

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