Average Formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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).
 
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)
 
Nice one Bob - thanks

Bob Phillips said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top