How to get Excel to tell you certain information?

Microsoft Office Questions, Tips, etc... || Outlook, Word, Excel, Powerpoint, Access

How to get Excel to tell you certain information?

Postby Steveclark » Tue Apr 20, 2010 7:53 pm

I have information from 2,166 people. There is a sex column with either a 1 (male) or 2 (female) for each one. There is other information like age, BMI, etc. I need to find the average, median, and standard deviation of all the males and all the females separately. How do I get excel to give me the mean of all the ages for just males when males and females are included on the spreadsheet?
Last edited by Steve on Thu Apr 22, 2010 8:47 am, edited 1 time in total.
Reason: Backlink removed - Provided no value to post <spam>
Steveclark
Newbie
Newbie
 
Posts: 3
Joined: Tue Apr 20, 2010 8:30 am

Calculate Median in Excel against 2 sets of data

Postby alexmvp » Thu Apr 22, 2010 5:50 pm

So....

I'm not an excel expert however, this is what I would do:

Let's assume Male or Female is in B2:B6 and BMI values is in C2:C6

Your formula would be:

Male:
=MEDIAN(IF(B2:B6="Male",C2:C6))

Female:
=MEDIAN(IF(B2:B6="Female",C2:C6))

Remember however, after you enter in the formula since this is a CSE formula you need to enter it then press Control+Shift+Enter instead of just hitting the enter key to save the formula.

It worked for me. Have fun!
User avatar
alexmvp
Groovy Contributor
Groovy Contributor
 
Posts: 167
Joined: Tue Jan 15, 2008 7:16 pm
Location: Portland, OR

Re: How to get Excel to tell you certain information?

Postby Steve » Sun Apr 25, 2010 11:54 pm

CTRL+Shift+Enter - Now that's a new one for me!
- Steve Krause
groovyPost.com
User avatar
Steve
groovyPost Founder
groovyPost Founder
 
Posts: 872
Joined: Fri Sep 12, 2003 10:45 am


Return to Microsoft Office

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google [Bot] and 15 guests