ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Averageif Calcs (https://www.excelbanter.com/excel-discussion-misc-queries/240346-averageif-calcs.html)

help

Averageif Calcs
 
I'm using windows XP (older version) which does not recognize the averageif
formula. I need a formula that calcs the average of four different data
points some of which contain zeros. Example:

A B C D avg
1 5 0 10 15 10


Pete_UK

Averageif Calcs
 
Use this array* formula:

=AVERAGE(IF(A1:D1<0,A1:D1))

*An array formula has to be committed using the key combination of
Ctrl-Shift-Enter (CSE) instead of the usual Enter. If you do this
correctly then Excel will wrap curly braces { } around the formula
when viewed in the formula bar - do not type these yourself. If you
amend the formula you will need to use CSE again.

Hope this helps.

Pete

On Aug 21, 12:43*pm, Help wrote:
I'm using windows XP (older version) which does not recognize the averageif *
formula. *I need a formula that calcs the average of four different data
points some of which contain zeros. Example:

* * *A * *B * C * D * *avg
1 * 5 * *0 * 10 *15 * 10



Don Guillett

Averageif Calcs
 
Use SUMIF/COUNTIF
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Help" wrote in message
...
I'm using windows XP (older version) which does not recognize the
averageif
formula. I need a formula that calcs the average of four different data
points some of which contain zeros. Example:

A B C D avg
1 5 0 10 15 10



Don Guillett

Averageif Calcs
 
Or sumproduct/countif

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Help" wrote in message
...
I'm using windows XP (older version) which does not recognize the
averageif
formula. I need a formula that calcs the average of four different data
points some of which contain zeros. Example:

A B C D avg
1 5 0 10 15 10



Eduardo

Averageif Calcs
 
Hi,

=SUM(A1:D1)/COUNTIF(A1:D1,"0")

if this helps please click yes, thanks

"Help" wrote:

I'm using windows XP (older version) which does not recognize the averageif
formula. I need a formula that calcs the average of four different data
points some of which contain zeros. Example:

A B C D avg
1 5 0 10 15 10


help

Averageif Calcs
 
The formula still gives me an error?
=(Percentages!D24+Percentages!J24+Percentages!P24)/countif(Percentages!D24,Percentages!J24,Percentage s!P24,"0")

"Eduardo" wrote:

Hi,

=SUM(A1:D1)/COUNTIF(A1:D1,"0")

if this helps please click yes, thanks

"Help" wrote:

I'm using windows XP (older version) which does not recognize the averageif
formula. I need a formula that calcs the average of four different data
points some of which contain zeros. Example:

A B C D avg
1 5 0 10 15 10


Bernie Deitrick

Averageif Calcs
 
Countif requires a contiguous range.

=(Percentages!D24+Percentages!J24+Percentages!P24)/SUM(Percentages!D240,Percentages!J240,Percentage s!P240)

Or, if there are only strings or blanks between the cells with the numbers:

=SUM(Percentages!D24:P24)/COUNTIF(Percentages!D24:P24,"0")

HTH,
Bernie
MS Excel MVP


"Help" wrote in message
...
The formula still gives me an error?
=(Percentages!D24+Percentages!J24+Percentages!P24)/countif(Percentages!D24,Percentages!J24,Percentage s!P24,"0")

"Eduardo" wrote:

Hi,

=SUM(A1:D1)/COUNTIF(A1:D1,"0")

if this helps please click yes, thanks

"Help" wrote:

I'm using windows XP (older version) which does not recognize the averageif
formula. I need a formula that calcs the average of four different data
points some of which contain zeros. Example:

A B C D avg
1 5 0 10 15 10





All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com