View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Andrew Bourke Andrew Bourke is offline
external usenet poster
 
Posts: 18
Default Special average calculation

Very nice.
Can this be put easily into a VBA macro ?
Rather than leave formulas in cells on the sheet I would like to do the
calculations through a macro.

TIA
Andrew

Bob Phillips wrote:
=SUM(IF(A1:A10<"",--SUBSTITUTE(A1:A10,"e","")))

this is an array formula, so commit with Ctrl-Shift-Enter