Hi I have a spreadsheet with numbers, this is an example:
480,000 600,000 720,000
520,000 650,000 780,000
300,000 375,000 450,000
432,000 540,000 648,000
260,000 325,000 390,000
304,000 380,000 456,000
340,000 425,000 510,000
304,000 380,000 456,000
and want them to look like:
480,000
520,000
300,000
432,000
260,000
304,000
340,000
304,000
600,000
650,000
375,000
540,000
325,000
380,000
425,000
380,000
720,000
780,000
450,000
648,000
390,000
456,000
510,000
456,000
But the actual data set is much larger, 23 columns and 351 rows for a total of over 8,000 cells. But the same idea as the smaller example set above. Any way to automate this? I found this function online:
Sub undo()![]()
Please Login or Register to view this content.
Dim r As Range
Set r = Range("a1").End(xlDown).Offset(1, 0)
Set r = Range(r, Cells(Rows.Count, "A").End(xlUp))
r.EntireRow.Delete
End Sub
Which seems to work but only for the first 4 columns as opposed to all 23, anyone know how to edit or redo it to make it work for the full data set? Thank you.
Bookmarks