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


Hello all
Im trying to create a formula to average some figures that are not next
to each other. I also do not want to include the zero amounts. The
formula in the help section of excel for Calculating the average of
numbers, ignoring zero (0) values is (=AVERAGE(IF(A2:A7<0,
A2:A7,""))) and it works great if the data is right next to each other.
However my layout for example I need the average of B8,B22,B25, and B36
to show up in say Q45. I tried to type the formula as
=AVERAGE(IF(B8,b22,b25,b36<0, B8,b22,b25,b36,"")) however it will not
function. I am using excel 2003 if that helps. Does any one have any
ideas any help will be greatly appreciated. Thanks in advance ~Jamie


--
pinkmeat
------------------------------------------------------------------------
pinkmeat's Profile: http://www.excelforum.com/member.php...o&userid=36865
View this thread: http://www.excelforum.com/showthread...hreadid=565796

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 470
Default Formula Help

Assuming that all the numbers are next to each other, even the ones with zero
value, try using this formula, replacing the range in the formula with the
range you need to average:

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

"pinkmeat" wrote:


Hello all
Im trying to create a formula to average some figures that are not next
to each other. I also do not want to include the zero amounts. The
formula in the help section of excel for Calculating the average of
numbers, ignoring zero (0) values is (=AVERAGE(IF(A2:A7<0,
A2:A7,""))) and it works great if the data is right next to each other.
However my layout for example I need the average of B8,B22,B25, and B36
to show up in say Q45. I tried to type the formula as
=AVERAGE(IF(B8,b22,b25,b36<0, B8,b22,b25,b36,"")) however it will not
function. I am using excel 2003 if that helps. Does any one have any
ideas any help will be greatly appreciated. Thanks in advance ~Jamie


--
pinkmeat
------------------------------------------------------------------------
pinkmeat's Profile: http://www.excelforum.com/member.php...o&userid=36865
View this thread: http://www.excelforum.com/showthread...hreadid=565796


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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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