I have data that looks like...
1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
I want it all in one column like....
1
2
3
4
5
6
7
8 etc How do I do this? Thanks.
every number in separate cells or every number from one row in one cell?
Last edited by tom1977; 10-20-2011 at 05:33 PM.
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
see attatchment
Azam
If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
For prompt answer, be descriptive, concise, short, direct, and to-the-point.
You can use such code:
Sub aa() Dim myrange As Range Dim os As Integer Dim ka As Variant Columns("h").ClearContents Set myrange = Cells(1, 1).CurrentRegion myrange.Select os = Cells(Rows.Count, "H").End(xlUp).Row For Each ka In myrange If Not IsEmpty(ka.Value) Then os = os + 1 Range("h" & os - 1) = ka.Value End If Next End Sub
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
Thanks everybody. The numbers are in different cells. Azam your formula works if the numbers range from low to high. However, actually the numbers are a bit random (high then low then high etc). Your formula seems to work only if the numbers range from low to high. So in actuality the numbers are 1 to 24 across (hours) then 1 to 365 days down. I want one column 1 to 24 for all 365 days. I am an excel novice and your help is much appreciated. So I now have
1 5 10 4 6 9 10
5 12 15 89 3 55
9 11 3 10 12 1
I want it all in one column like....
1
5
10
4
6
9
10
5
12
15
89
3
etc
How do I do this? Thanks.
If You want formula You can start with one from attachment
Last edited by tom1977; 10-21-2011 at 05:08 PM.
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks