averaging data ranges

Girish

New Member
Joined
May 2, 2002
Messages
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
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
On 2002-05-03 08:18, Girish wrote:
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

Care to post 5 rows of your data?
 
Upvote 0
Thanks for responding... here is a sample data ...

Age{
20,
39,
23,
20,
48,
37}

Shoes{
5,
4,
6,
9,
8,
5}
 
Upvote 0
On 2002-05-03 08:38, Girish wrote:
Thanks for responding... here is a sample data ...

Age{
20,
39,
23,
20,
48,
37}

Shoes{
5,
4,
6,
9,
8,
5}

Lets suppose that the sample is in A1:B7 including labels.

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
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,916
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top