Datenmanipulation analog Xverweis- und Teil-Funktion

Hallo zusammen,
folgendes Problem in Knime.
Ich möchte in den jeweiligen Zellen der Spalten HC bis PC einer Tabelle die ersten 3 Zeichen eines Textes und die Zeichen 4 bis 6 extrahieren.
Mit dem Text der ersten 3 Zeichen soll in den Zellen T1 bis HB1 gesucht werden. Bei einem Treffer soll in der jeweiligen Zeile, der Wert der Zeichen 4 bis 6 eingetragen werden.
In Excel habe ich das Problem mit folgender Formel gelöst: =TEIL(XVERWEIS(T$1;$HC2:$PC2;$HC2:$PC2;“”;1);4;3)

Wie sieht die Lösung dafür in Knime aus?

Danke
Rolli

Hi @Rolli ,

welcome to the forum!
I don’t speak German so I’ll write in English. Can you upload a small Excel where you show what you do? Few lines should work to understand the logic.

Thank you,
Raffaello Barri

1 Like

Hi @lelloba,
thank you for your answer.
I uploaded a simple example of my Excel. The original File ist about 200 columns to manipulate and about 60000 rows.
I hope the example shows the problem.
Bsp.xlsx (11.6 KB)

hi,
see if this accomplishes your result goal …
image
KNIME_mid-lookup-MM.knwf (119.5 KB)
rgds

4 Likes

Hi @Rolli ,

here is my solution:

I tried to avoid loops since you have many rows and columns, even if it can be a possible solution.

Hope it helps!

Have a nice day,
Raffaello Barri

3 Likes

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