Average of specific cells with numbers determined by values in Column/Row headers

holycrapitsaduck

New Member
Joined
Jul 25, 2016
Messages
2
I'm trying to create a formula on the first screenshot that references the cells in the second screenshot based on the name and week number. In the second screenshot, which shows data from the "HVL" tab, you can see the associate's name on the left and the week numbers across the top as the column headers. Because the week number appears more than once is where I believe I'm having the issue. The 100% that you see in the cell is not correct according to the data in the "HVL" tab. Here are some formulas that I've tried using:

=AVERAGE(((HVL!$A$2:$A$144='Weekly Report Card'!$C$1)*(HVL!$B$1:$AG$1='Weekly Report Card'!$A6)*(HVL!$C$3:$AG$201<>0)))
=AVERAGE(IF(HVL!A2:A144='Weekly Report Card'!C1:H1, IF(HVL!B1:AG1='Weekly Report Card'!A6, HVL!C3:AG201<>0, "ERROR")))
Both as an array and as normal.
=AVERAGEIF(HVL!$A$2:$A$144, "<>", INDEX(HVL!$C$3:$AG$201, MATCH($C$1, HVL!$A$2:$A$144, 0), MATCH('Weekly Report Card'!$A8, HVL!$C$1:$AG$1, 0)))
Both as an array and as normal.

If there's any other information that you need, please let me know.


-- removed inline image ---



-- removed inline image ---
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
excel_weekly_report.png


excel_hvl_tab.png
 
Upvote 0

Forum statistics

Threads
1,216,014
Messages
6,128,280
Members
449,436
Latest member
blaineSpartan

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