Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Averaging a dynamic range...Help ???

I've got basically three columns. ID, description, and numerical value
I would like to get an average of everything with identical ID an
Description, then put that average in the fourth column, but only o
the first instance of the ID and Description. The columns can be sorte
first if it's easier. I don't know how many of each there are.

example:

ID Description Value
Average
1 a 13
13
1 b 10
15
1 b 20
2 a 20
22
2 a 24
3 a 20
24
3 a 22
3 a 26
3 a 28
3 b 27
27


I've never written my own macro, and it's been forever since i eve
modified someone else's. Even just a headstart would be greatl
appreciated.

Ric

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Averaging a dynamic range...Help ???

Hi
try the following array formula in cell D2 (entered with
CTRL+SHIFT+ENTER):
=IF(MATCH(1,($A$1:$A2=A2)*($B$1:B2=B2),0)=ROW(),AV ERAGE(IF
(($A$2:$A$100=A2)*($B$2:$B$100=B2),$C$2:$C$100)))

and copy this down

-----Original Message-----
I've got basically three columns. ID, description, and

numerical value.
I would like to get an average of everything with

identical ID and
Description, then put that average in the fourth column,

but only of
the first instance of the ID and Description. The columns

can be sorted
first if it's easier. I don't know how many of each there

are.

example:

ID Description

Value
Average
1 a

13
13
1 b

10
15
1 b 20
2 a

20
22
2 a 24
3 a

20
24
3 a 22
3 a 26
3 a 28
3 b

27
27


I've never written my own macro, and it's been forever

since i even
modified someone else's. Even just a headstart would be

greatly
appreciated.

Rich


---
Message posted from http://www.ExcelForum.com/

.

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
averaging a range suprsonic Excel Worksheet Functions 5 May 6th 10 04:15 AM
Averaging times that are not in a range Nancy D Excel Worksheet Functions 3 April 20th 10 05:19 PM
Averaging data across a date range Barry Excel Worksheet Functions 1 December 17th 09 04:58 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Changing the range of several averaging functions Hellion Excel Discussion (Misc queries) 1 September 17th 05 02:12 PM


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