LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 257
Default Can I use the address function as an argument in another function?

Well, yes, you can. But strictly speaking this is a question for the other
Excel group, Excel Worksheet Functions
(microsoft.public.excel.worksheet.functions).

Briefly, you'll need the INDIRECT function too; that tells Excel to treat a
text string like "G3" as a cell address. (ADDRESS just creates the text
string.) Like one of these:

=AVERAGE(INDIRECT("A1:G3"))
=AVERAGE(INDIRECT("A1:"&ADDRESS(7,3)))
=AVERAGE(INDIRECT("R1C1:R"&7&"C"&3,FALSE))

There are other possible combinations, depending on whether you want your
row and/or column to depend on the contents of other cell(s). And if you use
the ADDRESS function, be sure and check the documentation on its third parm
regarding absolute or relative row and column numbers.

If you need more help, though, better post the question on the other forum.
Or feel free to email me, if you prefer :-).

--- "SID" wrote:
Can I use the address function as an argument in another function. For example,
"average(A1:address(7,3))". If yes, what is the correct syntax?

 
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
Need to get Address() to Average Function Range argument Tweedy Excel Worksheet Functions 6 April 27th 09 10:21 PM
Get cell address from macro function argument oscar New Users to Excel 3 June 1st 06 01:23 AM
Need Function Argument pasekm Excel Worksheet Functions 4 March 18th 06 11:14 PM
Function (array argument, range argument, string argument) vba Witek[_2_] Excel Programming 3 April 24th 05 03:12 PM
Function Argument Chip Pearson Excel Programming 1 September 1st 04 07:05 PM


All times are GMT +1. The time now is 08:51 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"