Hi,
In range B1:B9, type 1-9. Copy B1:B9 and paste it in cell B10. Select A1:B18 and sort the second column in ascending order. You may now delete the second column.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, curious if there is a way to copy data from one column to another in with spacing?
Long story short, I want to put data in an excel sheet that has no spacing to a sheet in which the destination has spacing in between them.
I don't want to put individual spacing in between every time in between them each time, can I copy the data and have the pasted information have spacing.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi,
In range B1:B9, type 1-9. Copy B1:B9 and paste it in cell B10. Select A1:B18 and sort the second column in ascending order. You may now delete the second column.
Here's a VBA solution for the example given:
Private Sub Test()
Dim cRow As Long
Dim mRow As Long
Application.ScreenUpdating = False
' Find last used row in column A
mRow = Range("A" & Rows.Count).End(xlUp).Row
For cRow = 1 To mRow
Range("D" & cRow * 2 - 1).Value2 = Range("A" & cRow).Value2
Next cRow
Application.ScreenUpdating = True
End Sub
That did work for me, thanks.
I wish there was a functional way to do this from the toolbar.
You are welcome. If my reply helped, please mark it as Answer.