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

I'm tracking my MPG's for my car. Column A has the odometer reading, B
is Gallons, C is Miles Traveled, D is MPG, and E is Average. I just
started doing this three-fillups ago, so my average right now consists
of =AVERAGE(D3:D5). If I change the "D5" to something greather than 5,
I get a #DIV/0! message. I'd rather not change that 5 to a 6 when I
want my next calculation and then to a 7 and so on. Is there way to do
this so I don't have to manually change the number each time?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
jim jim is offline
external usenet poster
 
Posts: 2
Default Using Average

One solution would be to edit your MPG calculation to not render error
messages. Try something like this:

D3: =IF(ISERROR(C3/B3),"",C3/B3)

This formula says "If calculating mileage returns an error (as it will
if I haven't entered miles or gallons yet!), leave the cell blank.
Otherwise, do the math."

Then when AVERAGE steps in, it isn't thrown by these error messages.
Instead, it'll just ignore the blanks.


Jim

On Oct 15, 3:50 pm, " wrote:
I'm tracking my MPG's for my car. Column A has the odometer reading, B
is Gallons, C is Miles Traveled, D is MPG, and E is Average. I just
started doing this three-fillups ago, so my average right now consists
of =AVERAGE(D3:D5). If I change the "D5" to something greather than 5,
I get a #DIV/0! message. I'd rather not change that 5 to a 6 when I
want my next calculation and then to a 7 and so on. Is there way to do
this so I don't have to manually change the number each time?

Thanks.


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
rolling average William Okumu Excel Worksheet Functions 5 May 25th 06 03:49 PM
Modified Average Function PA Excel Worksheet Functions 3 May 15th 06 12:20 PM
average 4 data from different sheets [email protected] Excel Discussion (Misc queries) 1 March 30th 06 12:23 AM
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
What is this kind of average called? havocdragon Excel Worksheet Functions 3 June 24th 05 05:10 PM


All times are GMT +1. The time now is 08:52 AM.

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"