#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Average If

Can someone provide a formula for the following:

If cells A1:A10 are greater than 0
Then Average A1:A10
Else (leave cell blank)


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Average If

=AVERAGE(IF(A1:A100,A1:A10,"")) entered as an array formula (Control Shift
Enter).
--
David Biddulph

"--Viewpoint" wrote in message
...
Can someone provide a formula for the following:

If cells A1:A10 are greater than 0
Then Average A1:A10
Else (leave cell blank)




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Average If

Do you mean if each cell is greater than 0, include in average, or just if
the sum of numbers is greater than 0, average them?
Former:
=SUMIF(A1:A10,"0")/COUNTIF(A1:A10,"0")
Latter
=IF(SUM(A1:A10)0,AVERAGE(A1:A10),"")

---
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"--Viewpoint" wrote:

Can someone provide a formula for the following:

If cells A1:A10 are greater than 0
Then Average A1:A10
Else (leave cell blank)


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Average If

Hi
Try this =IF(COUNTA(A1:A10)0,AVERAGE(A1:A10),"")
HTH
John
"--Viewpoint" wrote in message
...
Can someone provide a formula for the following:

If cells A1:A10 are greater than 0
Then Average A1:A10
Else (leave cell blank)



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Average If

Thank you, the =IF(SUM(A1:A10)0,AVERAGE(A1:A10),"") formula is the one I
need.

"Luke M" wrote:

Do you mean if each cell is greater than 0, include in average, or just if
the sum of numbers is greater than 0, average them?
Former:
=SUMIF(A1:A10,"0")/COUNTIF(A1:A10,"0")
Latter
=IF(SUM(A1:A10)0,AVERAGE(A1:A10),"")

---
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"--Viewpoint" wrote:

Can someone provide a formula for the following:

If cells A1:A10 are greater than 0
Then Average A1:A10
Else (leave cell blank)


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
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


All times are GMT +1. The time now is 07:31 PM.

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"