PC Review


Reply
Thread Tools Rate Thread

Copy/Paste Formula

 
 
Neel
Guest
Posts: n/a
 
      19th Oct 2007
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 With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      19th Oct 2007
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel formula to copy/paste formula needed please. colwyn Microsoft Excel Misc 4 22nd Oct 2008 11:27 PM
Copy / Paste Formula =?Utf-8?B?TWFyayBpbiBMb25nIElzbGFuZA==?= Microsoft Excel Misc 1 14th Feb 2007 05:27 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values =?Utf-8?B?RGVubmlz?= Microsoft Excel Misc 10 2nd Mar 2006 10:47 PM
To copy and paste a formula or drag a formula now only pastes the. =?Utf-8?B?bm9yYWRvcmE=?= Microsoft Excel Crashes 1 30th Oct 2004 10:22 AM
copy & paste using a formula ? Gene Holmes Microsoft Excel Discussion 6 22nd Feb 2004 08:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 AM.