Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Values in Columns to convert in rows

Hi all,

I have the folowwing data:

A1 B1 C1 D1 E1
Costs 100 200 125 2002562


What I need is to copy the data oto put like this:

A1 B1
2002562 100
2002562 200
2002562 125

Is there a way to do this using a macro or a function ? I tried to use
the transpose faunction but it didn't work

Can someone help me ?

Thank you

Ricardo galveia

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Values in Columns to convert in rows

Hi Gary,

It worked justv like I need but I have about 1500 lines with values to
copy how can I do it ?

Thank You for your help.

Ricardo
Gary''s Student escreveu:
Try:

Sub carpe()
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


--
Gary''s Student


"Carpe Diem" wrote:

Hi all,

I have the folowwing data:

A1 B1 C1 D1 E1
Costs 100 200 125 2002562


What I need is to copy the data oto put like this:

A1 B1
2002562 100
2002562 200
2002562 125

Is there a way to do this using a macro or a function ? I tried to use
the transpose faunction but it didn't work

Can someone help me ?

Thank you

Ricardo galveia



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 convert rows to columns Rick Excel Discussion (Misc queries) 0 March 31st 10 09:48 PM
Convert columns to Rows JOM Excel Programming 2 November 3rd 06 04:40 PM
to convert columns to rows having mulit independent group columns Quacy Excel Worksheet Functions 1 August 22nd 06 11:20 PM
Convert rows to columns Geno Excel Worksheet Functions 0 July 6th 06 04:41 PM
Can I convert columns to rows? Adam@Penda Excel Discussion (Misc queries) 3 January 11th 05 07:35 PM


All times are GMT +1. The time now is 11:44 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"