Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
martins
 
Posts: n/a
Default Average in Cells


I know how to calculate the Average within a range of cells - however,
what I would like to do is calculate the average but for only those
cells that return a figure based on the results of another formula -
example:if you have 6 cells but only 3 cells return a value, I would
like the average calculated on the 3 cells and not based on 6 - and
similarly, if another 2 figures are entered, the formula then
calculates the average of the 5 figures - hope this makes sense.


--
martins
------------------------------------------------------------------------
martins's Profile: http://www.excelforum.com/member.php...o&userid=31616
View this thread: http://www.excelforum.com/showthread...hreadid=526065

  #2   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default Average in Cells

You could use a combination formula to get your average..........

=SUMIF(A1:A10,"0")/COUNTIF(A1:a10,"0)

Adjust the ranges as needed........

Vaya con Dios,
Chuck, CABGx3



"martins" wrote:


I know how to calculate the Average within a range of cells - however,
what I would like to do is calculate the average but for only those
cells that return a figure based on the results of another formula -
example:if you have 6 cells but only 3 cells return a value, I would
like the average calculated on the 3 cells and not based on 6 - and
similarly, if another 2 figures are entered, the formula then
calculates the average of the 5 figures - hope this makes sense.


--
martins
------------------------------------------------------------------------
martins's Profile: http://www.excelforum.com/member.php...o&userid=31616
View this thread: http://www.excelforum.com/showthread...hreadid=526065


  #3   Report Post  
Posted to microsoft.public.excel.newusers
martins
 
Posts: n/a
Default Average in Cells


Yep - does the trick - was also wondering how you would allow for a
minus figure within the list of cells to add, as occasionally this does
happen -


--
martins
------------------------------------------------------------------------
martins's Profile: http://www.excelforum.com/member.php...o&userid=31616
View this thread: http://www.excelforum.com/showthread...hreadid=526065

  #4   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default Average in Cells

=SUMIF(A1:A10,"<0")/COUNTIF(A1:A10,"<0")

Vaya con Dios,
Chuck, CABGx3



"martins" wrote:


Yep - does the trick - was also wondering how you would allow for a
minus figure within the list of cells to add, as occasionally this does
happen -


--
martins
------------------------------------------------------------------------
martins's Profile: http://www.excelforum.com/member.php...o&userid=31616
View this thread: http://www.excelforum.com/showthread...hreadid=526065


  #5   Report Post  
Posted to microsoft.public.excel.newusers
Bernard Liengme
 
Posts: n/a
Default Average in Cells

Then again, SUMMING zero does noting, while COUNTING does so
=SUM(A1:A10)/COUNTIF(A1:A10,"<0")
best wishes from a pedantic me!
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"CLR" wrote in message
...
=SUMIF(A1:A10,"<0")/COUNTIF(A1:A10,"<0")

Vaya con Dios,
Chuck, CABGx3



"martins" wrote:


Yep - does the trick - was also wondering how you would allow for a
minus figure within the list of cells to add, as occasionally this does
happen -


--
martins
------------------------------------------------------------------------
martins's Profile:
http://www.excelforum.com/member.php...o&userid=31616
View this thread:
http://www.excelforum.com/showthread...hreadid=526065






  #6   Report Post  
Posted to microsoft.public.excel.newusers
martins
 
Posts: n/a
Default Average in Cells


To introduce another scenario - if I added another column which then
gave a total based on different calulation, how would you configure the
count formula as advised here - to count only the column which returned
a result?


--
martins
------------------------------------------------------------------------
martins's Profile: http://www.excelforum.com/member.php...o&userid=31616
View this thread: http://www.excelforum.com/showthread...hreadid=526065

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
Sumif Cells Are Not Blank Powlaz Excel Worksheet Functions 12 March 15th 06 04:40 PM
30 Day Moving Average Ignoring Blank Cells ethatch Excel Worksheet Functions 2 January 17th 06 09:37 AM
Average function with #VALUE! error in reference cells Larry4500 Excel Worksheet Functions 9 January 16th 06 09:44 AM
Limit or Exclude cells in Average and Sum formula dagger Excel Worksheet Functions 3 July 7th 05 03:52 PM
How do i get an average that ignores blanks in the range of cells. ucastores Excel Worksheet Functions 7 November 11th 04 05:01 PM


All times are GMT +1. The time now is 11:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"