Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Copy/Paste Formula

I have a spreadsheet with approx 3000 rows. This is basically broken
up into 200 odd SKU's that have 15 different metrics that I'm
showing.
e.g. SKU 123456 occupies rows 6-20, SKU 456789 occupies 21-35 and so
on and so forth.

I'm trying to create a macro that will go through the worksheet and
paste the same formula at every fifteenth row until the next row is
empty.
e.g. The 11th row for each SKU is a sum of the rows 12-15. The 3rd row
for each SKU is a vlookup from a table etc etc.

Any help is greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Copy/Paste Formula

I usually use a for loop

For RowCount = 21 to 1000 step 15

Range("B6:B10").copy Destination:=Range("B" & RowCount & ":B" & (RowCount
+ 4))

next RowCount


"Neel" wrote:

I have a spreadsheet with approx 3000 rows. This is basically broken
up into 200 odd SKU's that have 15 different metrics that I'm
showing.
e.g. SKU 123456 occupies rows 6-20, SKU 456789 occupies 21-35 and so
on and so forth.

I'm trying to create a macro that will go through the worksheet and
paste the same formula at every fifteenth row until the next row is
empty.
e.g. The 11th row for each SKU is a sum of the rows 12-15. The 3rd row
for each SKU is a vlookup from a table etc etc.

Any help is greatly appreciated.


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
FOrmula Copy and Paste Confused at Work[_2_] Excel Worksheet Functions 3 December 1st 08 08:34 PM
Excel formula to copy/paste formula needed please. colwyn Excel Discussion (Misc queries) 4 October 22nd 08 11:27 PM
can't copy/paste the formula Janis Excel Discussion (Misc queries) 2 August 14th 07 07:38 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
why cant I copy and paste a formula? Bryan J Bloom Excel Discussion (Misc queries) 2 November 25th 05 02:47 PM


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