![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 14
|
I've got a set of numbers (age) from 1 to about 100 and a related number (number of shoes) (s)he has. Total I have around 5000 rows. i want a chart that displays the average of shoes in the age range 1-10, 11-20 etc. Is there a way of doing this ?
Any hint will be appreciated |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 14
|
Thanks for responding... here is a sample data ...
Age{ 20, 39, 23, 20, 48, 37} Shoes{ 5, 4, 6, 9, 8, 5} |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
In D1 enter: Cat And from D2 on downwards enter: 10, 20, 30, 40, etc up to 100. In E1 enter: Cat Avg In E2 enter and copy down: =SUMPRODUCT(($A$2:$A$7>D1)*($A$2:$A$7<=D2),($B$2:$B$7))/MAX(1,SUMPRODUCT(($A$2:$A$7>D1)*($A$2:$A$7<=D2))) If you like, the denominator can also be written in terms of COUNTIF, but I leave that to you along with the graph that you want. Aladin |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: May 2002
Posts: 14
|
It worked !
Thanks very much Aladin |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|