Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default performing conditional averages.

Hi,

I've got a sheet with about 1500 rows and 30 columns. The data in one
column I've named Gender and in another EthnicGroup. with text
strings in the cell. In a third column with data named Age is a whole
number. (via the define name function)

{=AVERAGE(IF(Gender="Male",Age))} will give me the average age for
males and {=AVERAGE(IF(EthnicGroup="Russian",Age))} will give me the
average age for Russians.

I want to calculate the average age of Russians who are male. I can't
get IF(and(etc to do it. any suggestions.?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default performing conditional averages.

Try this (array entered):

=AVERAGE(IF((Gender="Male")*(EthnicGroup="Russian" ),Age))

Biff

"vinnie123" wrote in message
ps.com...
Hi,

I've got a sheet with about 1500 rows and 30 columns. The data in one
column I've named Gender and in another EthnicGroup. with text
strings in the cell. In a third column with data named Age is a whole
number. (via the define name function)

{=AVERAGE(IF(Gender="Male",Age))} will give me the average age for
males and {=AVERAGE(IF(EthnicGroup="Russian",Age))} will give me the
average age for Russians.

I want to calculate the average age of Russians who are male. I can't
get IF(and(etc to do it. any suggestions.?

Thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I figured out how to do total averages in Pivot Charts! Jason McDermott Charts and Charting in Excel 0 September 8th 06 06:21 PM
Conditional Averages Kris Andersen Excel Discussion (Misc queries) 1 March 22nd 06 07:29 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"