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

Is there a way to calculate the average of a list of numbers only if another
field in the same row contains a specific character? I have a spreadsheet
that contains lines of data with dollar values in one field and either an "M"
or an "R" in another field. I want to calculate the average dollar value for
only those lines that have a corresponding "M" in them.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 296
Default Conditional Statement to Compute Average

On Fri, 25 Aug 2006 07:01:01 -0700, goudmic
wrote:

Is there a way to calculate the average of a list of numbers only if another
field in the same row contains a specific character? I have a spreadsheet
that contains lines of data with dollar values in one field and either an "M"
or an "R" in another field. I want to calculate the average dollar value for
only those lines that have a corresponding "M" in them.


$ values in B, M/R in A

=SUMIF(A:A,"M",B:B)/COUNTIF(A:A,"M")

HTH
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
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
Conditional Average Array with Dates, <blanks, 0 tangomj Excel Worksheet Functions 7 July 14th 06 06:26 PM
Conditional Average across worksheets madduck Excel Worksheet Functions 3 July 13th 06 07:03 AM
Conditional Statement with Multiple Arguments swflorida77 Excel Worksheet Functions 2 July 1st 06 02:09 PM
Average a group, where grouping is Conditional on other col.??? tommot82 Excel Discussion (Misc queries) 1 June 9th 06 11:41 AM
IF Statement with Average Function results in #Value! Paul Excel Discussion (Misc queries) 5 December 28th 04 08:11 AM


All times are GMT +1. The time now is 10:07 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"