calculate averages

cflorackis

Board Regular
Joined
Aug 18, 2002
Messages
137
Dear friends

I have the following Table and I need to calculate the average values of the weight of specific subgroups of individuals (e.g. average weight of males that are over 20 years old). Is there a way to do that without filtering the data all the time and copying and pasting information to different spredsheets. Also, is there a way to create new columns that only contain the innformation required each time (e.g. list of the weight of those individuals that are males over the age of 20)

Than you very much in advance
aaaaaaaaaaa.xls
ABCDE
1persongenderageweight
21male2580
32female2658average weight of males >20 years old
43female3284average weight of males >30 years old
54female1478average weight of males >40 years old
65female1690average weight of males >50 years old
76male85125
87male80150
98female9288average weight of females >20 years old
109male1759average weight of females >30 years old
1110male4888average weight of females >40 years old
1211female2347average weight of females >50 years old
1312male2849
1413female45150
1514female7898
1615male8295
1716female1969
1817male5282
Sheet1
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I can get 74.75 with rows 2, 11, 13 and 18.

Some things to try:

1. Right click the header for column C, choose Data|Text to Columns and click Finish.

2. Repeat the above for column D.

If the result is still incorrect after converting possible text entries to values:

3. In a spare column on row 3 enter:

=B3=B$2

and copy down. Rows 7, 8, 10, 11, 13, 16 and 18 should contain TRUE. If not change the entries in column B to "male". They could for example have a trailing space.
 
Upvote 0
cflorackis said:
Yes pekka ,

I checked it my I could not really understand what you mean

I mean that some of your numbers are text. Excel doesn't see them as numbers and can not count them.

You have to change them into numbers again as I told you by multiplying them by number 1 or as Andrew just told you.

Pekka
:eek: :eek:
 
Upvote 0

Forum statistics

Threads
1,216,192
Messages
6,129,432
Members
449,509
Latest member
ajbooisen

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