# drop down row column header and put new one with a filter

**URL:** <https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804>\
**Category:** KNIME Analytics Platform\
**Created:** [August 17, 2023, 8:26am UTC](https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804 "2023-08-17T08:26:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarek\_b21](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/ccd318/32.png) [@tarek\_b21](https://forum.knime.com/u/tarek_b21)\
**Post date:** [August 17, 2023, 8:26am UTC](https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804/1 "2023-08-17T08:26:31Z")

</div>

I am currently working on a project that I would like to drop an existing full row of column header to row 1 and in row 0 to insert a new row of column headers which each has a filter I could use from. For example for **Formatkategorie** it could be ^(16|20|21|46|48|65)$.

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [August 22, 2023, 7:18pm UTC](https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804/2 "2023-08-22T19:18:05Z")

</div>

HI @tarek_b21 and welcome to the forum.

I’m not sure exactly what you’re trying to do - perhaps you could provide an example input and output dataset? The [Row to Column Names](https://kni.me/n/1bhXZF0sElQikrMm) node is one way to manipulate headers, but it sounds like you want some filtering functionality as well…?

---

<div class="post-metadata">

**Author:** ![tarek\_b21](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/ccd318/32.png) [@tarek\_b21](https://forum.knime.com/u/tarek_b21)\
**Post date:** [September 27, 2023, 9:34am UTC](https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804/3 "2023-09-27T09:34:04Z")

</div>

hello,

Thank you for the help but it did not work. The target what I am trying to achieve is adding the data header as shown in the first screenshot to the knime workflow in the second workflow without damages rest of the data below.

 ![Screenshot 2023-09-27 at 11.07.50](https://forum-cdn.knime.com/uploads/default/original/3X/7/0/70157c56e3b882d54d59d0b84b7f6b62106aca41.png)  
 ![Screenshot 2023-09-27 at 11.07.16](https://forum-cdn.knime.com/uploads/default/original/3X/f/e/fe976f19c07770a271970cae117ea0e278488251.jpeg)

---

<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:** [September 29, 2023, 7:16am UTC](https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804/5 "2023-09-29T07:16:06Z")

</div>

@tarek_b21 maybe indeed you could provide us with an example. Or you could take a look at these examples on how to combine several nodes to handle Excel headers and cells.

> [@Excel Import: Numbers recognized as string, which leads to an automatic roundup of all numbers](https://forum.knime.com/t/excel-import-numbers-recognized-as-string-which-leads-to-an-automatic-roundup-of-all-numbers/12425/14):
>
> What you can do is adjust the settings. You could tell KNIME to start reading data from line 4 and that the header is in line 3. This would give you this: If the structure of your tables does change you might have to be creative. You could first import the sheet ‘as is’ then identify the header line. Turn that information into a Flow Variable and use this line in informing the real import node where to start looking for header and data.

> [@Excel Reader Merged Cells](https://forum.knime.com/t/excel-reader-merged-cells/24916/3):
>
> Well this can be done. Question is if indeed it would be easier to just rename the columns … [image]

---

<div class="post-metadata">

**Author:** ![marzukim](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/bbe5ce/32.png) [@marzukim](https://forum.knime.com/u/marzukim)\
**Post date:** [September 29, 2023, 7:34am UTC](https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804/6 "2023-09-29T07:34:22Z")

</div>

as mentioned by _mlauber71_, if you can provide examples, it is much easier to suggest the best approach. the workflow here is just for giving an ideas to start.  
[KNIME\_header.knwf](https://forum.knime.com/uploads/short-url/pmrbQGPipmlmhIUSMygQOV2BpGM.knwf) (101.4 KB)

mm

---

<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 28, 2023, 7:34am UTC](https://forum.knime.com/t/drop-down-row-column-header-and-put-new-one-with-a-filter/71804/7 "2023-12-28T07:34:31Z")

</div>

Closed on December 28, 2023, 7:34am UTC

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