I have a file where I have to rearrange a fairly large table (a few hundred thousand cells, many of which are blank) into 3 columns. The attached image shows the before on the left and the after on the right (in another worksheet). Basically, the top row is account numbers, left column is items, and the numbers are prices. What I have in VBA is For loops using SpecialCells(xlCellTypeConstants).Count and lots of copying and pasting.
It works, but I imagine there is a more elegant solution. Any thoughts? Very much appreciated! Please let me know if this doesn't make sense.
Capture.PNG
Bookmarks