Thread
:
Using text for the range in AVERAGE function
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Domenic
external usenet poster
Posts: 256
Using text for the range in AVERAGE function
I'm not sure I understand you correctly, but if C2 and D2 contain
VLOOKUP formulas and return the text A2 and A6, respectively, you could
use the following formula...
=AVERAGE(INDIRECT(C2&":"&D2))
Hope this helps!
In article om,
wrote:
I'm trying to use a text string as the range in the AVERAGE function.
The AVERAGE function doesn't seem to like this.
For example:
=AVERAGE("A2" & ":" & "A6")
(my real sheet uses VLOOKUP to derive the "A2" and "A6" references, but
if you can get this simple text range to work, I can expand from there)
I found one way that uses INDIRECT and ADDRESS, but this seems
cumbersome.
= AVERAGE(INDIRECT(ADDRESS(2,1) & ":" & ADDRESS(6,1)))
Anyone have a simpler way to use text as the range input for the
AVERAGE function?
Thanks!
Reply With Quote
Domenic
View Public Profile
Find all posts by Domenic