LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Creating an AVERAGE next to the top of a selection

This is what I have so far and, being used to the .NET environment and
not having its excellent documentation... Well, I can't figure it out.

My function is extremely simple, but not yet complete because it has
the target cell hard-coded. I want the cell to be the in the next
column to the top of the selection. So if the selection is from C17:C33
then the following should be created in cell D17: =AVERAGE(C17:C33)

My function's code so far:

Range("g20") =
Application.WorksheetFunction.Average(Application. Selection)

 
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
Creating values based on selection from drop down box ck Excel Discussion (Misc queries) 0 March 12th 10 01:07 AM
Creating Average IF AAA1986 Excel Worksheet Functions 6 December 9th 09 02:47 PM
Calculate average based on user selection William Excel Discussion (Misc queries) 2 January 16th 07 06:16 PM
Help creating a macro to copy and paste a certain selection Shu of AZ Excel Discussion (Misc queries) 2 January 7th 07 08:26 PM
creating an average? loopiloo Excel Discussion (Misc queries) 2 July 22nd 06 07:24 PM


All times are GMT +1. The time now is 10:24 PM.

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"