#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default AVERAGEIF

Dear,

I am struggling with AVERAGEIF formula which calculates the average of data
of one location without including 0 values.

In the below example, would require a formula to calculate the average of
the data which corresponds for MEXICO excluding 0 values.

A1 B1
MEXICO 5
CHICAGO 89
TEXAS 10
MEXICO 0
TEXAS 45
MEXICO 15
CHICAGO 0
TEXAS 15
MEXICO 0

Please help..





  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default AVERAGEIF

Use AVERAGEIFS

=AVERAGEIFS(B1:B9,A1:A9,"MEXICO",B1:B9,"0")

--

HTH

Bob

"Sasikiran" wrote in message
...
Dear,

I am struggling with AVERAGEIF formula which calculates the average of
data
of one location without including 0 values.

In the below example, would require a formula to calculate the average of
the data which corresponds for MEXICO excluding 0 values.

A1 B1
MEXICO 5
CHICAGO 89
TEXAS 10
MEXICO 0
TEXAS 45
MEXICO 15
CHICAGO 0
TEXAS 15
MEXICO 0

Please help..







  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default AVERAGEIF

Try AVERAGEIFS()

or the array formula
=AVERAGE(IF((A1:A10="Mexico")*(B1:B100),B1:B10))

--
Jacob (MVP - Excel)


"Sasikiran" wrote:

Dear,

I am struggling with AVERAGEIF formula which calculates the average of data
of one location without including 0 values.

In the below example, would require a formula to calculate the average of
the data which corresponds for MEXICO excluding 0 values.

A1 B1
MEXICO 5
CHICAGO 89
TEXAS 10
MEXICO 0
TEXAS 45
MEXICO 15
CHICAGO 0
TEXAS 15
MEXICO 0

Please help..





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 376
Default AVERAGEIF

Hi

Because you have dual criteria, Mexico and 0 you will need to use
Sumproduct

=SUMPRODUCT((A1:A6="Mexico")*(B1:B60)*B1:B6)/
SUMPRODUCT((A1:A6="Mexico")*(B1:B60))
--
Regards
Roger Govier

Sasikiran wrote:
Dear,

I am struggling with AVERAGEIF formula which calculates the average of data
of one location without including 0 values.

In the below example, would require a formula to calculate the average of
the data which corresponds for MEXICO excluding 0 values.

A1 B1
MEXICO 5
CHICAGO 89
TEXAS 10
MEXICO 0
TEXAS 45
MEXICO 15
CHICAGO 0
TEXAS 15
MEXICO 0

Please help..





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default AVERAGEIF

Try this..

=AVERAGEIFS(B1:B10,A1:A10,"Mexico",B1:B10,"0")

--
Jacob (MVP - Excel)


"Jacob Skaria" wrote:

Try AVERAGEIFS()

or the array formula
=AVERAGE(IF((A1:A10="Mexico")*(B1:B100),B1:B10))

--
Jacob (MVP - Excel)


"Sasikiran" wrote:

Dear,

I am struggling with AVERAGEIF formula which calculates the average of data
of one location without including 0 values.

In the below example, would require a formula to calculate the average of
the data which corresponds for MEXICO excluding 0 values.

A1 B1
MEXICO 5
CHICAGO 89
TEXAS 10
MEXICO 0
TEXAS 45
MEXICO 15
CHICAGO 0
TEXAS 15
MEXICO 0

Please help..





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
AverageIF Very Basic User Excel Discussion (Misc queries) 6 March 10th 10 09:35 PM
Help with Averageif Formula (don't think I should use Averageif) MUmfleet Excel Discussion (Misc queries) 5 April 9th 09 04:53 PM
AVERAGEIF Tung Nguyen Excel Worksheet Functions 3 April 4th 09 01:29 AM
AverageIf TG Excel Discussion (Misc queries) 5 June 10th 08 08:51 PM
AverageIF coastal Excel Discussion (Misc queries) 1 November 13th 07 11:28 PM


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