Index/Match, Sum and Average

juangregory

New Member
Joined
Jul 29, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello Excel gurus. This started out as an index/match project but I'm not sure if the best solution lies there. And anyway, I can't get it to work.
Objective: average 2 separate columns in a worksheet and return that average based on 2 criteria. Here is Sheet2:

YearMonthDepartmentActualBudgeted
202110551026.5227.01
202111551028.1026.32
20211255103230.11
202201551027.2928.11
202202551026.9827.13

And my summary Sheet 1 would look like this:

2022
DepartmentProductivity
5510=average(32, 27.29, 26.98)/average(30.11, 28.11, 27.13) = 98.9%

The formula would have to match Sheet1!$B$2 against the Year array in Sheet2, and match Sheet1!$A2 against the Department array in Sheet2. Then calculate the averages for both Actual and Budgeted and divide them.

INDEX MATCH works great for finding individual months in Sheet2, but when I nest INDEX MATCH inside a SUM formula, (I was trying to keep it simple first to see if i could get totals, then average them later), i only get the first row's value of Budgeted. Either that or a #REF. I've been googling this for the last 3 hours and have tried any number of things (SUMIF, FILTER, and of course SUM(AVERAGE(INDEX(MATCH))) but so far i'm coming up empty.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Actually my math is backward. 98.9 would be the quotient if i divided E by D.
 
Upvote 0
another correction: Year 2022 should be in the bottom three rows of Sheet2!A
 
Upvote 0
Issue resolved with =AVERAGEIFS. As usual, i was making things too complicated by half.
 
Upvote 0

Forum statistics

Threads
1,215,421
Messages
6,124,806
Members
449,191
Latest member
rscraig11

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