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

Help. I've calculated the average of three different cells in three different
rows that are not in sequential rows. The problem is that some of the cells
may contain a zero so the formula should only divide by two instead of three.
Anyone of the cells could be zero so you may have to divide by one, two or
three. Is there a formula???

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Averages

TRY ANY ONE OF THE FOLLOWING :
1. =AVERAGE(IF(A1:A7<0, A1:A7))
This is an array formula and as such it must be commited with
Shift+Ctrl+<Enter

2. =SUMIF(A1:A7, "<0")/COUNTIF(A1:A7, "<0")

click yes below, if it works

"Help" wrote:

Help. I've calculated the average of three different cells in three different
rows that are not in sequential rows. The problem is that some of the cells
may contain a zero so the formula should only divide by two instead of three.
Anyone of the cells could be zero so you may have to divide by one, two or
three. Is there a formula???

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Averages

thanks for the help....I should have been a little clearer
Qtr 1 Qtr 2 Qtr3
A B C D E F G H I Avg
1 3 5 3
6 5 0 5.5 (not 3.6)
0 0 8 8

Columns B, C, E, etc have numbers as well. I'm tring to get an average of
the first quarter over a six year period.

"Help" wrote:

Help. I've calculated the average of three different cells in three different
rows that are not in sequential rows. The problem is that some of the cells
may contain a zero so the formula should only divide by two instead of three.
Anyone of the cells could be zero so you may have to divide by one, two or
three. Is there a formula???

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Averages

IF YOUR DATA CONTAINS DATA FOR THE FIRST QUARTER IN THE RANGE B1 TO C6, FOR
WHICH U WANT TO CALCULATE AVERAGE,
1. TYPE IN DESIRED CELL
=AVERAGE(IF(B1:C6<0, B1:C6))
This is an array formula and as such it must be commited with
Shift+Ctrl+<Enter

2. =SUMIF(B1:C6, "<0")/COUNTIF(B1:C6, "<0")

ELSE CHANGE THE RANGE SUITABLY

click yes below, if it works

"Help" wrote:

thanks for the help....I should have been a little clearer
Qtr 1 Qtr 2 Qtr3
A B C D E F G H I Avg
1 3 5 3
6 5 0 5.5 (not 3.6)
0 0 8 8

Columns B, C, E, etc have numbers as well. I'm tring to get an average of
the first quarter over a six year period.

"Help" wrote:

Help. I've calculated the average of three different cells in three different
rows that are not in sequential rows. The problem is that some of the cells
may contain a zero so the formula should only divide by two instead of three.
Anyone of the cells could be zero so you may have to divide by one, two or
three. Is there a formula???

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
Averages Steve Moss Excel Discussion (Misc queries) 2 December 9th 08 09:59 AM
Averages Marvin Excel Discussion (Misc queries) 5 July 4th 08 09:34 AM
Help with Averages TimJames Excel Worksheet Functions 2 March 6th 08 08:53 PM
first ten and last ten averages aazharr Excel Worksheet Functions 2 February 28th 08 03:28 PM
30, 60 or 90 day averages Bendleton Excel Worksheet Functions 3 December 22nd 06 08:34 AM


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