Hi all,
Wondering if someone would know if its possible to use the Average function with Index Match using my below Active Cell code, I use this code a lot in spreadsheets but it has me stumped on how to incorporate the Average function.
Basically what I want the code to do is look in column B for the number represented in Column E then average the figures in Column C against that particular number
Wondering if someone would know if its possible to use the Average function with Index Match using my below Active Cell code, I use this code a lot in spreadsheets but it has me stumped on how to incorporate the Average function.
Basically what I want the code to do is look in column B for the number represented in Column E then average the figures in Column C against that particular number
Range("D" & Trim(Str(rr.Row))).Select |
ActiveCell.FormulaArray = _ |
"=IFERROR(INDEX(Sheet1!R3C3:Sheet1!R" & Trim(Str(totAvg)) & "C3,MATCH(1,(Sheet1!R3C1:Sheet1!R" & Trim(Str(totAvg)) & "C1=Sheet1!R1C1)*(Sheet1!R3C5:Sheet1!R" & Trim(Str(totAvg)) & "C5=RC[-3]),0)),0)" |