• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Mr. Microsoft Excel Expert actually needs Excel help :)

Azurik

Platinum Member
The data are found in multiple columns, however, each row contains only one data entry. I need to consolidate them to one column only (A1 to A11, for example).

Excel Chart with Data Shown

How the hell do I do this? Is there a function for this?
 
Odin gave me a VB code to run and it seems to work. Here is what he wrote:

Okay....if I understand what you have....the following will work.

Open your file and hit Alt + F11

This will bring up the VB code.

You want to copy and paste this code into the "This Workbook" object.

Change the line that has "65536" to the number of the row which has your last piece of data for faster performance.


****BEGIN CODE****

Sub Arrange()

Application.ScreenUpdating = False

For i = 1 To 65536

Range("A" & i).Select
Selection.End(xlToRight).Select
Selection.Cut
Range("A" & i).Select
ActiveSheet.Paste

Next i

Application.ScreenUpdating = True

MsgBox "All Done!", vbOKOnly

End Sub


****END CODE****


I then selected "Run" from the menu and did a "Run Macro". Seems to work!

:thumbsup:
 
Back
Top