Average previous 10 cells using Multiple dimensional Index Match

voltrader

Board Regular
Joined
Dec 17, 2009
Messages
58
Office Version
  1. 2010
Platform
  1. Windows
Hello all,

Been trying to figure this out to no avail. I am trying to Average the previous 10 cell range from my INDEX,MATCH,MATCH result, my formula is:

AVERAGE(IFERROR(INDEX($C$2:$C$10,MATCH(1,INDEX(($A4=$A$2:$A$100)*($H$2=!$B$2:$B$100),0,1),0)),0), (IFERROR(INDEX($C$2:$C$7982,MATCH(1,INDEX(($A4=$A$2:$A$100)*($D$2=!B$2:$B$100),0,1),0)),0)))

My formula is only yielding the avg of the first, and last cells in the desired range, I am trying to Average all the cells of the range.

Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=AVERAGE(IFERROR(INDEX($C$2:$C$100,MATCH(1,INDEX(($A4=$A$2:$A$100)*($H$2=$B$2:$B$100),0,1),0)):INDEX($C$2:$C$100,MATCH(1,INDEX(($A4=$A$2:$A$100)*($D$2=B$2:$B$100),0,1),0)),0))
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=AVERAGE(IFERROR(INDEX($C$2:$C$100,MATCH(1,INDEX(($A4=$A$2:$A$100)*($H$2=$B$2:$B$100),0,1),0)):INDEX($C$2:$C$100,MATCH(1,INDEX(($A4=$A$2:$A$100)*($D$2=B$2:$B$100),0,1),0)),0))
Hey, Thanks for the heads up, I will update my info. I tried your suggestion, the value return is 0. Doesn't seem to be working.
 
Upvote 0
Did you confirm it with Ctrl Shift Enter, rather than just Enter?
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,185
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top