formula to calculate average from header and value criteria

cjcass

Well-known Member
Joined
Oct 27, 2011
Messages
680
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I'm looking for a formula to insert into cell AE8 that will calculate the average of the scores in the table based on the two variable criteria entered into cells AE5 and AE6. The table size may vary (number of columns and rows) but the headers will always be unique. So, in the example below the formula finds the 'Header Selection' 8 in Row 3 and then returns the average of the 'Scores' in Col AA that meet the 'Value Selection' of 7.
Any help much appreciated and would prefer a formula solution in this instance, many thanks.

313t7rk.jpg
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try this:

=AVERAGEIF(INDEX($A$4:$V$19,,MATCH($AE$5,$A$3:$V$3,0)),$AE$6,$AA$4:$AA$19)
 
Upvote 0
Works perfectly, many thanks 'steve the fish' :)
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,637
Members
449,242
Latest member
Mari_mariou

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