Hello,
the following:
I got a sheet with ~15000 rows, I sort them first and then I go from the last to the first and delete if the input in column 5 is the same as in the row above, additionally I add the values in column 12.
Now, this takes forever. I takes me roughly 2.5 minutes to do it for 250 rows.
Is there a faster way to do this?
Thanks in advance!
the following:
I got a sheet with ~15000 rows, I sort them first and then I go from the last to the first and delete if the input in column 5 is the same as in the row above, additionally I add the values in column 12.
Now, this takes forever. I takes me roughly 2.5 minutes to do it for 250 rows.
Code:
Do While i > i
If Sheet.Cells(i, Clm) = Sheet.Cells(i - 1, Clm) Then
Sheet.Cells(i - 1, 12) = Sheet.Cells(i - 1, 12) + Sheet.Cells(i, 12)
Sheet.Range(Cells(i, 1), Cells(i, 25)).Delete xlShiftUp
End If
i = i - 1
Loop
Is there a faster way to do this?
Thanks in advance!