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

Hi, i have something like this:
Only 6 days have entries in this ex.

day 1 = 1200 km
day 2 = 1245 km
day 3 = 1300 km
day 4 = 1315 km
day 5 =
day 6 = 1350 km
day 7 =
.....
day 30 = 1500

A38 = 300km (km/month)
I need 300/nr of days = 50km/day
In this example i have only 6 entries with km. But in other days i can have
more or less days with km.

I need a formula to calculate how many days have km (EX:6), and to divide
the result in A38 to the number of entries found in A1-A37.
Can this be done?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default average

Hi,

You should be able to use the COUNT or COUNTA formula.

However if these do not work because of your data layout you could try using
a "helper" column containing the formula:

Assuming day data is in Col A and km data is in Col B and cell is blank if
no KM:
=if(B1="",0,1)

This will then give you a column of zeros that you can sum as your total
number of days with km.

Myles


"puiuluipui" wrote:

Hi, i have something like this:
Only 6 days have entries in this ex.

day 1 = 1200 km
day 2 = 1245 km
day 3 = 1300 km
day 4 = 1315 km
day 5 =
day 6 = 1350 km
day 7 =
....
day 30 = 1500

A38 = 300km (km/month)
I need 300/nr of days = 50km/day
In this example i have only 6 entries with km. But in other days i can have
more or less days with km.

I need a formula to calculate how many days have km (EX:6), and to divide
the result in A38 to the number of entries found in A1-A37.
Can this be done?
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
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


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