View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
ppeer ppeer is offline
external usenet poster
 
Posts: 25
Default select range in column, calculate on range plus 3 columns, outputinrange plus 7 columns

Hi p45cal,

Column D with the numbers (see OP) also contains cells with the word;
"nvt". Using the average function in the worksheet itself results in
the expected result: ignore those cells with nvt.
But using application.worksheetfunction.average(etc....) in vba trows
the error; "Unable to get the average property of the worksheet
funation class, error 1004". Only using numbers in each cell of the
range does give the expected result. I also tried empty cells instead
of nvt, but then the average function also results in an error.
I hope this is of any help.

Peter