Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Average with Conditions

I need to a formula that will look at column c and if it contains a certain
text say "dog" I want to average the price located in column H

Thanks
--
ce
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average with Conditions

Try one of these...

Excel 2007 or later:

=AVERAGEIF(C2:C10,"dog",H2:H10)

Any version of Excel:

=SUMIF(C2:C10,"dog",H2:H10)/COUNTIF(C2:C10,"dog")

This one is array entered:

=AVERAGE(IF(C2:C10="dog",H2:H10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Curtis" .(do not spam) wrote in message
...
I need to a formula that will look at column c and if it contains a certain
text say "dog" I want to average the price located in column H

Thanks
--
ce



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Average with Conditions

=AVERAGE(IF(C2:C100="dog",H2:H100))

ctrl+shift+enter, not just enter


"Curtis" wrote:

I need to a formula that will look at column c and if it contains a certain
text say "dog" I want to average the price located in column H

Thanks
--
ce

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 464
Default Average with Conditions

I would avoid array formulas and simply use;
=SUMIF(C1:C100,"dog",H1:H100)/COUNTIF(C1:C100,"dog")


--
Regards
Dave Hawley
www.ozgrid.com

"Curtis" .(do not spam) wrote in message
...
I need to a formula that will look at column c and if it contains a certain
text say "dog" I want to average the price located in column H

Thanks
--
ce


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
Average with Conditions Curtis[_2_] Excel Worksheet Functions 3 March 18th 10 05:31 PM
Average If with multiple conditions WildWill Excel Discussion (Misc queries) 1 February 10th 09 10:45 AM
AVERAGE with conditions mr_concrete Excel Worksheet Functions 3 February 7th 07 08:23 PM
Conditional Average (2 conditions) kayard Excel Worksheet Functions 3 August 12th 06 12:32 AM
average on 2 conditions Ted Metro Excel Worksheet Functions 6 January 7th 05 08:23 PM


All times are GMT +1. The time now is 03:44 PM.

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

About Us

"It's about Microsoft Excel"