Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Copy values in columns to rows

Hi,

I have this macro :

Try:

Sub col_row()
v = Array(Cells(1, 2).Value, Cells(1, 3).Value, Cells(1, 4).Value,
Cells(1,
5).Value)
Range("A1:E1").Clear
Range("A1:A3").Value = v(3)
Range("B1").Value = v(0)
Range("B2").Value = v(1)
Range("B3").Value = v(2)
End Sub


this macro allows to copy the following data :
A1 B1 C1 D1 E1
Costs 100 200 125 2002562

to:
A1 B1
2002562 100
2002562 200
2002562 125

But right now I have:

A1 B1 C1 D1 E1
Costs 100 200 125 2002562
Cash 10 205 135 2002563
Costs 100 200 125 2002564
Cash 10 205 135 2002565

How can I do the same ?

A1 B1
2002562 100
2002562 200
2002562 125
2002563 10
2002563 205
2002563 135
2002564 100
2002564 200
2002564 125
2002565 10
2002565 205
2002565 135

Can someone give a help?

Thank you

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
Copy while skipping Rows Will Excel Discussion (Misc queries) 3 December 15th 06 06:25 AM
Cutting and pasting from rows into columns and visa versa. Pank New Users to Excel 2 November 8th 06 02:54 PM
Copy columns values into separate columns Mike_can Excel Discussion (Misc queries) 7 May 27th 06 01:32 AM
How to Count Rows with defined values in multiple columns ryesworld Excel Worksheet Functions 9 November 8th 05 07:32 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 01:02 AM


All times are GMT +1. The time now is 04:06 AM.

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

About Us

"It's about Microsoft Excel"