LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 399
Default Syntax for "intersection of this col & this range"?

On Sheet1, I will have a column of item numbers, with each item having
perhaps 20 columns of numbers following. I need to separate these items
into groups, and take the average of all the numbers in that group in each
column. Say Group1 is rows 3-10, numbers in col B-J. In B11, I need to
place the average of B3-B10, ditto for C11, etc. If Group2 is rows 12-15,
the averages will go into row 16 across all the columns.

Since the lengths of these groups can vary, it was my thought to use VBA to
create a named range for each group. Then I could find the last row of the
range, insert a new row, and run across the row in the required cells to
insert a formula to average the numbers above that belong to the named
range.

Where I'm stuck is how to reference the intersection of the particular
column and the named range. So in B11 (for my example above), I would have
a formula that says "=AVERAGE (intersection of this column and the named
range for Group1)". It seems like it should be easy, but I can't get my
brain out of neutral! Any kick-starts would be appreciated.

Ed


 
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
correct syntax for nesting "if", "and", and "vlookup"....if possib Christine Excel Worksheet Functions 4 January 2nd 09 10:43 PM
Syntax to "OR" 3 "ISERROR" conditions Mike K Excel Worksheet Functions 6 July 22nd 06 04:18 PM
what is syntax for if(between range of dates,"Q1","Q2")? TLB Excel Worksheet Functions 3 December 6th 05 05:19 PM
Using "Cells" to write "Range("A:A,H:H").Select" Trip Ives[_2_] Excel Programming 3 June 5th 04 03:13 PM


All times are GMT +1. The time now is 02:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"