Hello guys,
im setting up a tool and one of the steps is to merge some data together.
It's a large document and my initial idea was to cycle back from last row, and check 2 cells, if they match between the 2 rows, a 3rd cell merges both row values and deletes the old one.
[TABLE="width: 272"]
<tbody>[TR]
[TD]row nr /[/TD]
[TD]1st value/[/TD]
[TD]2nd value/[/TD]
[TD]merge value[/TD]
[/TR]
[TR]
[TD="align: right"]3000[/TD]
[TD]/random[/TD]
[TD]/match/[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3001[/TD]
[TD]/random[/TD]
[TD]/match/[/TD]
[TD="align: right"]2
[/TD]
[/TR]
</tbody>[/TABLE]
result:3000 /random/ match/ 3
This is too slow and I'm not sure how to approach it, the data size will only increase through out time.
Going row by row seems to be inefficient, but I can't think of a better way
im setting up a tool and one of the steps is to merge some data together.
It's a large document and my initial idea was to cycle back from last row, and check 2 cells, if they match between the 2 rows, a 3rd cell merges both row values and deletes the old one.
[TABLE="width: 272"]
<tbody>[TR]
[TD]row nr /[/TD]
[TD]1st value/[/TD]
[TD]2nd value/[/TD]
[TD]merge value[/TD]
[/TR]
[TR]
[TD="align: right"]3000[/TD]
[TD]/random[/TD]
[TD]/match/[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3001[/TD]
[TD]/random[/TD]
[TD]/match/[/TD]
[TD="align: right"]2
[/TD]
[/TR]
</tbody>[/TABLE]
result:3000 /random/ match/ 3
This is too slow and I'm not sure how to approach it, the data size will only increase through out time.
Going row by row seems to be inefficient, but I can't think of a better way
Last edited: