AVERAGE / MEDIAN formula question

12345678

New Member
Joined
Sep 25, 2006
Messages
1
Formulas question:

How can I create a condition to pull information from one column based on another column (like a VLOOKUP), and average the information in all the cells according to the criteria (without changing when I re-sort the data set)?

For example, I have three columns of data:

AGE WEIGHT HEIGHT
7 70 48
7 75 51
8 90 42
8 87 53

What formula(s) do I need to get an average and median height and for all people age 7?

thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi, welcome to the board!

Something like this:

For Median:
=MEDIAN(IF($A$2:$A$5=7,$C$2:$C$5))

Confirm with CTRL-SHIFT-ENTER rather than just Enter

For Average:
=AVERAGE(IF($A$2:$A$5=7,$C$2:$C$5))

Confirm with CTRL-SHIFT-ENTER rather than just Enter
 
Upvote 0
Enter the following formual WITHOUT THE CURLY BRACES. Then confirm with CONTROL SHIFT ENTER (NOT JUST ENTER). For median , just replace average with median


{=AVERAGE(IF(A1:A4=7,C1:C4))}

Gene, "The Mortgage Man, Klein
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,025
Members
449,060
Latest member
LinusJE

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