Hi guys
I'm trying to create an Average forumula with a variable range.
My problem (maybe it's a problem?) is that my reference for my Match's is in the file the formula is in but the amounts I want averaged are in another excel file. So I'd like the variable range to be dictated by one sheet (a moving date each month) but the average doing its thing on data in another excel file.
My current unsuccesful formula is:
=AVERAGE('AnotherExcelFile'!$P$9:INDIRECT(ADDRESS(MATCH('Cover Page'!B28,'AnotherExcelFile'!$O$4:$AA$4,0),MATCH('Cover Page'!B28,'AnotherExcelFile'!$A$4:$AA$4,0),,,)))
So this formula is in an excel file that I want the output in and is also in the same file as the 'Cover Page' source, which is just like 01/05/11. All the data is in AnotherExcelFile.
So not sure what I'm doing/not doing, if I drop the average part at the start and just have an Indirect function I get the right cell reference I'm after, but I don't know how to add it to the average function, so without all the formula stuff it would look like this:
=AVERAGE('AnotherExcelFile'!$P$9:$W$9)
Any help would be greatly appreciated Looking to keep the formula as simple/smart as I can and not involve macros/names, etc
Thanks!
I'm trying to create an Average forumula with a variable range.
My problem (maybe it's a problem?) is that my reference for my Match's is in the file the formula is in but the amounts I want averaged are in another excel file. So I'd like the variable range to be dictated by one sheet (a moving date each month) but the average doing its thing on data in another excel file.
My current unsuccesful formula is:
=AVERAGE('AnotherExcelFile'!$P$9:INDIRECT(ADDRESS(MATCH('Cover Page'!B28,'AnotherExcelFile'!$O$4:$AA$4,0),MATCH('Cover Page'!B28,'AnotherExcelFile'!$A$4:$AA$4,0),,,)))
So this formula is in an excel file that I want the output in and is also in the same file as the 'Cover Page' source, which is just like 01/05/11. All the data is in AnotherExcelFile.
So not sure what I'm doing/not doing, if I drop the average part at the start and just have an Indirect function I get the right cell reference I'm after, but I don't know how to add it to the average function, so without all the formula stuff it would look like this:
=AVERAGE('AnotherExcelFile'!$P$9:$W$9)
Any help would be greatly appreciated Looking to keep the formula as simple/smart as I can and not involve macros/names, etc
Thanks!