Thread: avg ?
View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Tammy Tammy is offline
external usenet poster
 
Posts: 145
Default avg ?

thanks everyone. both of those worked.


"csi.sec" wrote:

Another option is to insert a column next to F which we will call G (which
you can hide so it does not show on the table) Then create an if statement
for the cells on this new column and now drag & fill the cells in this new
column with the new formula
=IF(A1="DWF",IF(F10,F1,""),"")
which will only return the values for DWF that are greater than zero and
leave all the other cells blank for that column. The "" leaves the cells
blank so they are not populated with zeros which allows you to average the
only the cells with a numeric value. You can now place the average function
=average(G1:G65000) in any open cell to pull an average of the new column G
you created which you can now hide if you want to clean up you sheet.

There are other ways to do this with multiple formulas. The above is simple
& works

"Tammy" wrote:

thanks guys - i need to add one more twist. I do not want it to include in
the average where there is a value of 0%. can you please tell me how to add
that?

"driller" wrote:

hi Tammy,
try it as array formula..
=AVERAGE(if(A1:A65000="DFW",F1:F65000))
press CTRL-SHFT-ENTER not just enter.
regards
--
*****
birds of the same feather flock together..



"Tammy" wrote:

what's wrong with this statement?

=AVERAGE(if A1:A65000="DFW",F1:F65000)

i want my spreadsheet to give me the average of the percentages listed in
column F where column A = dfw ...
thanks