#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default formula or function?

I'd like to have a macro that will compute the average of the non-blank
elements in a column. Should I use a formula or a function for the
calculating part?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default formula or function?

Have you tried entering, for example:
2, blank, 3, blank, 4, blank in A1:A4 and using the formula =AVERAGE(A1:A4)
?
If you try this you will find that AVERAGE ignores blanks

Note we have a formula - it begins with =
But our formula incorporates a function - AVERAGE

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"grok" wrote in message
...
I'd like to have a macro that will compute the average of the non-blank
elements in a column. Should I use a formula or a function for the
calculating part?



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
?IF function for preventing a cell being filled by formula confused teacher Excel Worksheet Functions 3 July 6th 06 06:01 AM
Last Saved Date Formula / Function [email protected] Excel Discussion (Misc queries) 3 June 7th 06 04:52 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM


All times are GMT +1. The time now is 06:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"