Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Adding Formula's

I use a macro to filter a range of cells where column A
contains dates (each 1 week apart), then pastes it to
another worksheet. The macro then adds 2 blank rows at
the end of each row of cells in Col. A that has a
different month. Everything works fine until I attempt to
add a formula to "AVERAGE" the rows in columns C-N,
and "SUM" the rows in columns O-W.
Anyone have any idea's on how to write the code so that it
only sums and averages the rows for each month
(separately)? The following is an example of how I am
trying to get the report to look like:
A B C D E F G H I
1 Period AtBats Hits RBI Sin. Doub Trip HR's K's
2 1/2 12 4 1 2 1 0 1 2
3 1/9 16 5 1 4 0 1 0 5
4 1/16 12 2 0 2 0 0 0 3
5 1/23 14 1 0 0 1 0 0 6
6 1/30 13 3 0 1 1 0 1 2
7 JAN-02 (avg) (avg) (sum) (sum) (sum) (sum)(sum) (sum)
8
9 2/6 15 4 0 4 0 0 0 2
10 2/13 8 3 0 1 2 0 0 0
11 2/20 10 3 1 2 1 0 0 2
12 2/27 12 5 2 2 1 1 1 1
13 FEB-02 (avg) (avg) (sum) (sum) (sum) (sum)(sum) (sum)
14
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's Bensum Excel Worksheet Functions 1 October 16th 09 11:06 AM
formula's MadisonNYC Excel Discussion (Misc queries) 7 May 31st 06 02:07 AM
PLease help me with formula's Beth Excel Worksheet Functions 3 March 10th 06 08:42 PM
Formula's ShellH Excel Worksheet Functions 2 February 22nd 06 06:02 PM
Formula's George Excel Worksheet Functions 7 January 26th 06 07:11 PM


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