LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default Difficult Average Calculation <HELP

This is what I'm trying to do. Hopefully simple to you, but tough for me....
Calculate averages while skipping certain rows and all zero values...

(Example)

MILEAGE TOTAL
A1 100
A2 200
A3 300
A4 TOTAL: 600 (ignore this row)
A5 100
A6 0
A7 200
A8 TOTAL: 300 (ignore this row)
etc.. (down)

All of these cells are linked to another workbook. For some reason it
inserts a zero by default (even if the cells in the other workbook are
blank). The goal is to calculate the averge miles traveled. I'm trying to
have the function ignore all of the zero values. I've tried two suggested
formulas, but it looks like I have too many arguments?

=Average(If(G12:G15=0,"",G12:G15))
=(SUM(G12:G15))/(COUNTIF(G12:G15, "<0"))

Any help would be much appreciated...

Thx!
Jason K.
 
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
formula result #value! needs to equal zero for average calculation LauraRose Excel Worksheet Functions 3 March 13th 06 06:13 PM
Calculation help from average total Middlemix Excel Worksheet Functions 1 February 16th 06 01:26 PM
calculation a average dependated of values in seperate column vinnie123 Excel Worksheet Functions 1 February 16th 06 01:55 AM
A difficult conditonal calculation 0-0 Wai Wai ^-^ Excel Worksheet Functions 1 November 28th 05 03:50 AM
Difficult (for me) formula/UDF calculation Mike Echo Excel Worksheet Functions 4 December 25th 04 09:09 AM


All times are GMT +1. The time now is 11:44 AM.

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"