PC Review


Reply
Thread Tools Rate Thread

Can I use the address function as an argument in another function?

 
 
SID
Guest
Posts: n/a
 
      19th Sep 2008
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?
 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      19th Sep 2008
=AVERAGE(A1:INDIRECT(ADDRESS(7,3)))

--

Regards,
Nigel
(E-Mail Removed)



"SID" <(E-Mail Removed)> wrote in message
news:75FC54A7-5BCE-402E-8E7C-(E-Mail Removed)...
> 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?


 
Reply With Quote
 
Bob Bridges
Guest
Posts: n/a
 
      19th Sep 2008
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?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to get Address() to Average Function Range argument Tweedy Microsoft Excel Worksheet Functions 6 27th Apr 2009 10:21 PM
Is there a Function and Function Argument generic self-reference? Maxwell_Smart@ThePentagon.com Microsoft VB .NET 2 13th Jun 2006 05:45 PM
Get cell address from macro function argument =?Utf-8?B?b3NjYXI=?= Microsoft Excel New Users 3 1st Jun 2006 01:23 AM
Function (array argument, range argument, string argument) vba Witek Microsoft Excel Programming 3 24th Apr 2005 03:12 PM
How to pass address as an argument to a function =?Utf-8?B?TGkgUGFuZw==?= Microsoft VB .NET 2 26th Nov 2004 03:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 AM.