#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Average cells

i have a sheet that collects data by the date (1/1/09,1/2/09....) and then
comes up with the differences in usage from day to day. in column "F" i have
the data i want to average for the month but i cant just do =Average(F1:F31)
because in this column i have it totaling for the week. how can i average
the month but skip the cells that hold the weekly total and not average any
cell that has a zero in it?
it kind of looks like this..
A F
1/1/09 .001
1/2/09 0
1/3/09 .0058
Total .0068
1/4/09 .012
The weekly totals fall every saturday not every 7th day of the month please
help been racking my brain for a few days thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average cells

Try this array formula** :

=AVERAGE(IF((ISNUMBER(A1:A31))*(F1:F31<0),F1:F31) )

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Seth.Schwarzkopf" wrote in
message ...
i have a sheet that collects data by the date (1/1/09,1/2/09....) and then
comes up with the differences in usage from day to day. in column "F" i
have
the data i want to average for the month but i cant just do
=Average(F1:F31)
because in this column i have it totaling for the week. how can i average
the month but skip the cells that hold the weekly total and not average
any
cell that has a zero in it?
it kind of looks like this..
A F
1/1/09 .001
1/2/09 0
1/3/09 .0058
Total .0068
1/4/09 .012
The weekly totals fall every saturday not every 7th day of the month
please
help been racking my brain for a few days thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Average cells

Thanks that worked for 1 column. i have the same thing in column "K" so i
just changed all the "F's" to "K's" and now i get div by zero. is that
because i dont have any info entered to get numbers in the rest of column "K"
or have i just entered something wrong?

"T. Valko" wrote:

Try this array formula** :

=AVERAGE(IF((ISNUMBER(A1:A31))*(F1:F31<0),F1:F31) )

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Seth.Schwarzkopf" wrote in
message ...
i have a sheet that collects data by the date (1/1/09,1/2/09....) and then
comes up with the differences in usage from day to day. in column "F" i
have
the data i want to average for the month but i cant just do
=Average(F1:F31)
because in this column i have it totaling for the week. how can i average
the month but skip the cells that hold the weekly total and not average
any
cell that has a zero in it?
it kind of looks like this..
A F
1/1/09 .001
1/2/09 0
1/3/09 .0058
Total .0068
1/4/09 .012
The weekly totals fall every saturday not every 7th day of the month
please
help been racking my brain for a few days thanks in advance




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average cells

i get div by zero. is that because i dont have any
info entered to get numbers in the rest of column "K"


Yes

To prevent the error until data is entered:

=IF(ISERROR(AVERAGE(IF((ISNUMBER(A1:A31))*(K1:K31< 0),K1:K31))),"",AVERAGE(IF((ISNUMBER(A1:A31))*(K1 :K31<0),K1:K31)))

Still array entered.


--
Biff
Microsoft Excel MVP


"Seth.Schwarzkopf" wrote in
message ...
Thanks that worked for 1 column. i have the same thing in column "K" so i
just changed all the "F's" to "K's" and now i get div by zero. is that
because i dont have any info entered to get numbers in the rest of column
"K"
or have i just entered something wrong?

"T. Valko" wrote:

Try this array formula** :

=AVERAGE(IF((ISNUMBER(A1:A31))*(F1:F31<0),F1:F31) )

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Seth.Schwarzkopf" wrote in
message ...
i have a sheet that collects data by the date (1/1/09,1/2/09....) and
then
comes up with the differences in usage from day to day. in column "F" i
have
the data i want to average for the month but i cant just do
=Average(F1:F31)
because in this column i have it totaling for the week. how can i
average
the month but skip the cells that hold the weekly total and not average
any
cell that has a zero in it?
it kind of looks like this..
A F
1/1/09 .001
1/2/09 0
1/3/09 .0058
Total .0068
1/4/09 .012
The weekly totals fall every saturday not every 7th day of the month
please
help been racking my brain for a few days thanks in advance






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
from a group of cells.find average of cells containing values farm Excel Discussion (Misc queries) 1 December 21st 06 08:50 PM
Excel-only average cells if two cells in same row, meet two condit Eulie-Denver Excel Worksheet Functions 5 October 5th 06 11:15 PM
average cells, show 0 if nothing to average Kycajun Excel Discussion (Misc queries) 8 June 21st 06 07:36 PM
Average in Cells martins New Users to Excel 5 April 2nd 06 11:16 AM
average 2 cells (Mileage Divide by Gallons in two cells dip43 Excel Discussion (Misc queries) 1 March 31st 06 04:03 AM


All times are GMT +1. The time now is 09:05 PM.

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"