My spreadsheet has 20 x 100.000 (columns x lines) of data but with several empty columns, it was obtained from a PDF report. I would like to "group" all columns, therefore removing empty spaces in between, preferably without VBA codes. See example below.
Original spreadsheet:
Col.1 | Col.2 | Col.3 | Col.4 | Col.5
12345 | empty | ABCD | empty | 1A2B
empty | empty | 45678 | empty | x1z2
Desired result:
Col.1 | Col.2 | Col.3 | Col.4 | Col.5 |
12345 | ABCD | 1A2B | empty | empty |
45678 | x1z2 | empty | empty | empty |
Follow these steps:
HOME
tab.Go To Special
.Blanks
and hit OK
.Result:
Shift cells left
and hit OK
.Result: