The spreadsheet author has kindly made this so it will print out nicely, but actually the ‘WITH’ or ‘WITHOUT’ values belong to the row above. To be clear, this is not a merged cell, they have just styled the borders in Excel so that it looks nice.
How would you achieve a node which checks for a cell value starting with with or without and moves it so it gets added it to the end of the cell above?
I’m not sure it works, but maybe you could add a lagged column (node “Lag Column”) and then use a “Column Expressions” node to combine the two. If you provide a test spreadsheet I can try it myself
here is my workflow car_data_with_without – KNIME Hub. I had to use a Python script, because I couldn’t find a way to lag the column one step back one row. Then I used “Column Expressions” node to add “with / without X” and to replace missing values with blank strings in the “Variant” column where there is in fact no variant (in models “3er / 3-series Compact …”). Hope it solves the problem
Hi @DWJames , here’s an alternative without Python script, instead using the Moving Aggregation node (basically using the same idea as suggested by @Daniel_Weikert). This node is one of the most versatile there is in Knime. I’ve used this node for so many different situations, and it’s most definitely useful to do a “reverse” lag column.
this is great, thank you again @Daniel_Weikert - You mentioned previously that you might be available for some other data work we have. How can I get in touch with you?