ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   "AverageIf" (https://www.excelbanter.com/excel-worksheet-functions/233810-averageif.html)

fozzie888

"AverageIf"
 
I want to create a formula along the lines of a "SumIf" but for averages -
the target cells are blank and will be filled in later, so until they are the
formula cell displays #DIV/0!, which not only annoys me (!) but does not look
professional. Any suggestions?

Jacob Skaria

"AverageIf"
 
Handle that using ISERROR()

=IF(ISERROR(AVERAGE(A1:C1)),"",AVERAGE(A1:C1))

If this post helps click Yes
---------------
Jacob Skaria


"fozzie888" wrote:

I want to create a formula along the lines of a "SumIf" but for averages -
the target cells are blank and will be filled in later, so until they are the
formula cell displays #DIV/0!, which not only annoys me (!) but does not look
professional. Any suggestions?


Shane Devenshire[_2_]

"AverageIf"
 
Hi,

Try this

=IF(COUNT(A1:A10),AVERAGE(A1:A10),"")

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"fozzie888" wrote:

I want to create a formula along the lines of a "SumIf" but for averages -
the target cells are blank and will be filled in later, so until they are the
formula cell displays #DIV/0!, which not only annoys me (!) but does not look
professional. Any suggestions?


T. Valko

"AverageIf"
 
I want to create a formula along the lines of a "SumIf" but for averages

I assume that means you want to do a conditional average: AVERAGE(IF(...

What does your formula look like?

What version of Excel are you using?

--
Biff
Microsoft Excel MVP


"fozzie888" wrote in message
...
I want to create a formula along the lines of a "SumIf" but for averages -
the target cells are blank and will be filled in later, so until they are
the
formula cell displays #DIV/0!, which not only annoys me (!) but does not
look
professional. Any suggestions?




Shane Devenshire[_2_]

"AverageIf"
 
Hi,

If you are using 2007 try this

=IFERROR(AVERAGE(A1:A10),"")

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"fozzie888" wrote:

I want to create a formula along the lines of a "SumIf" but for averages -
the target cells are blank and will be filled in later, so until they are the
formula cell displays #DIV/0!, which not only annoys me (!) but does not look
professional. Any suggestions?



All times are GMT +1. The time now is 07:35 AM.

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