Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
REW2705
 
Posts: n/a
Default Average If Adejecent Cells Greater Than Zero

I have a have multiple worksheets that contain data i would like to calculate
some averages for. Down one column is BF, LN, DN, SCK, TOT repeated, and the
adjecent cell contains a value I currently have the average for Breakfast as
=(SUMIF(August!$J$2:$J$91,"BF",August!$K$2:$K$91))/COUNTIF(August!$J$2:$J$91,"BF"),
howver the count function still counts cells that have zero values, I would
like the average of only the non-zero cells. Any ideas????
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default Average If Adejecent Cells Greater Than Zero

=AVERAGE(IF((August!$J$2:$J$91="BF")*(August!$K$2: $K$91<0),August!$K$2:$K$9
1))

entered with ctrl + shift & enter

--

Regards,

Peo Sjoblom




"REW2705" wrote in message
...
I have a have multiple worksheets that contain data i would like to

calculate
some averages for. Down one column is BF, LN, DN, SCK, TOT repeated, and

the
adjecent cell contains a value I currently have the average for Breakfast

as

=(SUMIF(August!$J$2:$J$91,"BF",August!$K$2:$K$91))/COUNTIF(August!$J$2:$J$91
,"BF"),
howver the count function still counts cells that have zero values, I

would
like the average of only the non-zero cells. Any ideas????



  #3   Report Post  
REW2705
 
Posts: n/a
Default Average If Adejecent Cells Greater Than Zero

That still doesnt work, i played around with it and im still not getting the
average of only the non-zero matching values. It either counts the zero
cells as a one to to change the average or it doesnt add them to the sum but
it divides by too large of a number.

  #4   Report Post  
REW2705
 
Posts: n/a
Default Average If Adejecent Cells Greater Than Zero

Never mind, it worked

"REW2705" wrote:

I have a have multiple worksheets that contain data i would like to calculate
some averages for. Down one column is BF, LN, DN, SCK, TOT repeated, and the
adjecent cell contains a value I currently have the average for Breakfast as
=(SUMIF(August!$J$2:$J$91,"BF",August!$K$2:$K$91))/COUNTIF(August!$J$2:$J$91,"BF"),
howver the count function still counts cells that have zero values, I would
like the average of only the non-zero cells. Any ideas????

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
Use functions when cells are merged Amanda Excel Worksheet Functions 3 September 12th 05 06:08 PM
Limit or Exclude cells in Average and Sum formula dagger Excel Worksheet Functions 3 July 7th 05 03:52 PM
requires that merged cells must be identically sized? Catt Excel Discussion (Misc queries) 11 July 3rd 05 12:36 PM
How do i get an average that ignores blanks in the range of cells. ucastores Excel Worksheet Functions 7 November 11th 04 05:01 PM
copy group of cells to another group of cells using "IF" in third Chuckak Excel Worksheet Functions 2 November 10th 04 06:04 PM


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