FUNCTION

W

wilt

Had a question about maybe a function.... this is what i got

A B C
1 TIM MAY 16
2 WAYNE JUNE 12
3 ROB MARCH 24


and i was looking to make it like this

A B C
1 TIM WAYNE ROB
2 MAY JUNE MARCH
3 16 12 24

any suggestions?1?!?
 
L

Lars-Åke Aspelin

Had a question about maybe a function.... this is what i got

A B C
1 TIM MAY 16
2 WAYNE JUNE 12
3 ROB MARCH 24


and i was looking to make it like this

A B C
1 TIM WAYNE ROB
2 MAY JUNE MARCH
3 16 12 24

any suggestions?1?!?

Select cells A1:C3
Right click anywhere inside the selection av choose "Copy".

Right click on an empty space and choose "Paste Special".
In the dialog that appears tich the "Transpose" checkbox and then
click on OK.

Your transposed data table can now be Cut and Paste to the original
location, i.e. cells A1:C3.

Hope this helps / Lars-Åke
 
B

Bob Phillips

Try this

Dim NumRows As Long
Dim NumCols As Long

With ActiveSheet

NumRows = .Cells(.Rows.Count, "A").End(xlUp).Row
NumCols = .Cells(1, .Columns.Count).End(xlToLeft).Column
.Range("A1").Resize(NumRows, NumCols).Copy
.Range("A1").Offset(, NumCols).Resize(NumRows, NumCols).PasteSpecial
Transpose:=True
.Range("A1").Resize(, NumCols).EntireColumn.Delete
End With
 
S

Stan Brown

Sun, 16 May 2010 08:47:01 -0700 from wilt
Had a question about maybe a function.... this is what i got

A B C
1 TIM MAY 16
2 WAYNE JUNE 12
3 ROB MARCH 24


and i was looking to make it like this

A B C
1 TIM WAYNE ROB
2 MAY JUNE MARCH
3 16 12 24

any suggestions?1?!?

Look up "transpose" in Excel help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top