Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default copy/paste scenario

Hello all-

I have a 5500 row spreadsheet. The info on the even rows needs to be added
to the end of the odd rows. Any quicker way than cutting/pasting every even
row to the end of the odd row?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default copy/paste scenario

Sub appendeventooodd()
lr = Cells(Rows.Count, "a").End(xlUp).Row
For i = lr To 2 Step -2
Cells(i - 1, "a") = Cells(i - 1, "a") & " " & Cells(i, "a")
Next i
End Sub


--
Don Guillett
SalesAid Software

"ohdharleyboy" wrote in message
...
Hello all-

I have a 5500 row spreadsheet. The info on the even rows needs to be
added
to the end of the odd rows. Any quicker way than cutting/pasting every
even
row to the end of the odd row?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default copy/paste scenario

Thanks Don-

Do I run this as a formula or as a script against the workbook?

"Don Guillett" wrote:

Sub appendeventooodd()
lr = Cells(Rows.Count, "a").End(xlUp).Row
For i = lr To 2 Step -2
Cells(i - 1, "a") = Cells(i - 1, "a") & " " & Cells(i, "a")
Next i
End Sub


--
Don Guillett
SalesAid Software

"ohdharleyboy" wrote in message
...
Hello all-

I have a 5500 row spreadsheet. The info on the even rows needs to be
added
to the end of the odd rows. Any quicker way than cutting/pasting every
even
row to the end of the odd row?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default copy/paste scenario

This is a macro, not a formula. It should be pasted in a module in the
visual basic editor...

Post back if you have questions.

Dave
--
Brevity is the soul of wit.


"ohdharleyboy" wrote:

Thanks Don-

Do I run this as a formula or as a script against the workbook?

"Don Guillett" wrote:

Sub appendeventooodd()
lr = Cells(Rows.Count, "a").End(xlUp).Row
For i = lr To 2 Step -2
Cells(i - 1, "a") = Cells(i - 1, "a") & " " & Cells(i, "a")
Next i
End Sub


--
Don Guillett
SalesAid Software

"ohdharleyboy" wrote in message
...
Hello all-

I have a 5500 row spreadsheet. The info on the even rows needs to be
added
to the end of the odd rows. Any quicker way than cutting/pasting every
even
row to the end of the odd row?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default copy/paste scenario

Thanks Dave and Don - this worked like a charm!

"Dave F" wrote:

This is a macro, not a formula. It should be pasted in a module in the
visual basic editor...

Post back if you have questions.

Dave
--
Brevity is the soul of wit.


"ohdharleyboy" wrote:

Thanks Don-

Do I run this as a formula or as a script against the workbook?

"Don Guillett" wrote:

Sub appendeventooodd()
lr = Cells(Rows.Count, "a").End(xlUp).Row
For i = lr To 2 Step -2
Cells(i - 1, "a") = Cells(i - 1, "a") & " " & Cells(i, "a")
Next i
End Sub


--
Don Guillett
SalesAid Software

"ohdharleyboy" wrote in message
...
Hello all-

I have a 5500 row spreadsheet. The info on the even rows needs to be
added
to the end of the odd rows. Any quicker way than cutting/pasting every
even
row to the end of the odd row?





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
faster, more effective scenario analysis? BoulderBen Excel Discussion (Misc queries) 2 November 18th 06 06:31 AM
Scenario Manager Tony0z New Users to Excel 1 April 12th 06 02:34 AM
Creating Scenarios and Scenario Manager Louise Excel Worksheet Functions 4 February 15th 06 01:17 AM
Scenario Function tippers New Users to Excel 0 January 24th 06 08:16 PM
Copy/Paste in Autofilter honyacker Excel Discussion (Misc queries) 2 January 12th 06 02:38 PM


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