#1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Make stair columns

Hi..there
If you have any clue, please help me out.
I have the values in A column below
A
B
C
D
E
F
G
H
I
J
K
L
But I wold like to get:
A
B D
C E G
F H J
I K
L

Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Make stair columns

How about a macro:

Option Explicit
Sub testme()

Dim DestCell As Range
Dim myStep As Long
Dim LastRow As Long
Dim FirstRow As Long
Dim iRow As Long

myStep = 3

With Worksheets("sheet1")
FirstRow = 1
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row

Set DestCell = .Range("a1")
For iRow = FirstRow + myStep To LastRow Step myStep
Set DestCell = DestCell.Offset(1, 1)
With .Cells(iRow, "A").Resize(myStep)
.Copy _
Destination:=DestCell
.ClearContents
End With
Next iRow

End With

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

wrote:

Hi..there
If you have any clue, please help me out.
I have the values in A column below
A
B
C
D
E
F
G
H
I
J
K
L
But I wold like to get:
A
B D
C E G
F H J
I K
L

Thank you.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Make stair columns


My working columns are in the attached .xls, but it would take someone
with a little more expertise to make a simple one-column formula from
that.

Good luck, and if you cannot access the .zip file from
www.excelforum.com please let me know and I will email it to you.

Cheers


ps, hi Dave

Wrote:
Hi..there
If you have any clue, please help me out.
I have the values in A column below
A
B
C
D
E
F
G
H
I
J
K
L
But I wold like to get:
A
B D
C E G
F H J
I K
L

Thank you.



+-------------------------------------------------------------------+
|Filename: pyramid.zip |
|Download:
http://www.excelforum.com/attachment.php?postid=4052 |
+-------------------------------------------------------------------+

--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=487020

  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Make stair columns

It works nicely.
I really appreciate it.
Jae Ryu

  #5   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Make stair columns

Hi Bryan:
I coudn't get pyramid.zip file you attached.
The webserver said the line is invalid.
If you send me the file, it would be great.
Thanks.
Jae Ryu

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make different size columns on the same work space? Marion Charts and Charting in Excel 1 August 6th 05 12:02 AM
How do I make the A,B,C... on top of the columns hidden? briana Excel Discussion (Misc queries) 2 July 26th 05 09:00 PM
Clearing information in certain columns jolly_lolly Excel Discussion (Misc queries) 1 April 22nd 05 02:41 AM
When sorting info in columns, can I make it insert blank line bet. nanalehew Excel Worksheet Functions 2 March 12th 05 04:36 PM
Averaging columns rhodesv New Users to Excel 1 December 16th 04 08:14 PM


All times are GMT +1. The time now is 03:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"