LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Calculate running average but not count a zero.

A B C D E F

ROW1 DATE SCORE MATH AVERAGE
ROW2 1 1/2/2009 0 0 0
ROW3 2 1/2/2009 75 75 75
ROW4 3 1/2/2009 135 213 107
ROW5 4 1/2/2009 99 312 104
ROW6 5 1/2/2009 0 0 0
ROW7 6 1/2/2009 149 149 30


THE MATH:
=IF(D1=0,0,D1)
=IF(D2=0,0,D2+E1) and so on

THE AVER
=E1/B1
=E2/B2 and so on

I want to be able to calculate the average score in a running total. But I
do not want the running total to count "0" in the score colum.
Right now id someone scores a zero it blow the average. I do not care to
count a zero in the score colum. Below is how I want it to work.
In row 5 the person scored a zero and it did not impact the average. But
with the way I am doing the formula it is changing the 115 average to a 30
average. For my purposes 115 is the average not 30. How can I do this?


A B C D E F

ROW1 DATE SCORE MATH AVERAGE
ROW2 1 1/2/2009 0 0 0
ROW3 2 1/2/2009 75 75 75
ROW4 3 1/2/2009 135 213 107
ROW5 4 1/2/2009 99 312 104
ROW6 5 1/2/2009 0 0 0
ROW7 6 1/2/2009 149 461 115
 
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
Calculate Count of Days & Average WHERE Amount <0 amg0657 Excel Worksheet Functions 1 April 1st 08 02:37 AM
running average [email protected] Excel Discussion (Misc queries) 5 July 9th 07 09:43 PM
running average barabpan Excel Discussion (Misc queries) 2 April 3rd 07 06:40 PM
Running Average Scott W New Users to Excel 1 April 16th 06 03:28 AM
Running Average lsmft Excel Discussion (Misc queries) 5 March 28th 06 10:44 PM


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