#1   Report Post  
Anthony
 
Posts: n/a
Default Average Formula

Hi,
can anybody advise of a formula to work out an average on a given number on
the days passed in the month.....??
eg
data below for first 5 days of month
day1,20
day2,25
day3,32
day4,10
day5,9
so the average thus far in the month will be 19.2 (first 5days data divided
by 5)

if days 6 and 7 are added the formula would then work out the average for
the first 7 days.....and so on
hope thats clear
thanks
  #2   Report Post  
Lewis Clark
 
Posts: n/a
Default

I would recommend putting the "day1" and the "20" in separate columns. Then
use the Average function to find your average - it will only include cells
with numbers in them. Set the range for the average function to the number
of rows you need for the month (31 rows will cover all possible months).


"Anthony" wrote in message
...
Hi,
can anybody advise of a formula to work out an average on a given number
on
the days passed in the month.....??
eg
data below for first 5 days of month
day1,20
day2,25
day3,32
day4,10
day5,9
so the average thus far in the month will be 19.2 (first 5days data
divided
by 5)

if days 6 and 7 are added the formula would then work out the average for
the first 7 days.....and so on
hope thats clear
thanks



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Assuming the values in B1:B31

=AVERAGE(IF(B1:B31<0,B1:B31))

which is an array formula, so commit with Ctrl-Shift-Enter.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Hi,
can anybody advise of a formula to work out an average on a given number

on
the days passed in the month.....??
eg
data below for first 5 days of month
day1,20
day2,25
day3,32
day4,10
day5,9
so the average thus far in the month will be 19.2 (first 5days data

divided
by 5)

if days 6 and 7 are added the formula would then work out the average for
the first 7 days.....and so on
hope thats clear
thanks



  #4   Report Post  
Anthony
 
Posts: n/a
Default

Nice one Bob - thanks

"Bob Phillips" wrote:

Assuming the values in B1:B31

=AVERAGE(IF(B1:B31<0,B1:B31))

which is an array formula, so commit with Ctrl-Shift-Enter.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Hi,
can anybody advise of a formula to work out an average on a given number

on
the days passed in the month.....??
eg
data below for first 5 days of month
day1,20
day2,25
day3,32
day4,10
day5,9
so the average thus far in the month will be 19.2 (first 5days data

divided
by 5)

if days 6 and 7 are added the formula would then work out the average for
the first 7 days.....and so on
hope thats clear
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
Formula works in some cells, doesn't in other Wowbagger New Users to Excel 13 June 30th 05 03:21 PM
AVERAGE and STDEV functions with logic t-rung Excel Worksheet Functions 1 May 26th 05 07:11 PM
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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