INDEX, MATCH, AVERAGE Formula

kipper19

Board Regular
Joined
Apr 12, 2014
Messages
92
Office Version
  1. 365
Platform
  1. Windows
Looking for some help

I have a spreadsheet which has around 20K rows of data, Im looking for a formula that I enter 3 parameters into a search box and it will calculate the average of numbers it finds against the search parameters in column D,
Column D could have up to 50 different numbers against the same parameters so Im looking to average them,
I have attached a screen shot of what Im trying to achieve, hope someone could shed some light

Search.png
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Give this a try

=AVERAGEIFS(D2:D15,A2:A15,G2,B2:B15,G3,C2:C15,G4)

Where G2,G3 & G4 are your selections
 
Upvote 0
CunningAce

I really appreciate your help, works well, thank you
 
Upvote 0
CunningAce, one question, as this formula is averaging lots of numbers that meet the search criteria, it could be 20 up to 200, how could I average say the highest top 10 or 20 numbers, I did search online and tried this but it did not work =AVERAGEIFS(E2:E940000,">="&LARGE(E2:E940000,20),A2:A940000,K4,B2:B940000,J4,C2:C940000,I4)<o:p></o:p>
 
Upvote 0
Hi,

This is an array formula so you will need to confirm using CTRL, SHIFT & ENTER

=AVERAGE(LARGE(IF((A2:A62=G2)*(B2:B62=G3)*(C2:C62=G4),D2:D62),{1,2,3,4,5,6,7,8,9,10}))

You can expand the red section to choose how many scores to evaluate as part of the average
 
Upvote 0

Forum statistics

Threads
1,215,390
Messages
6,124,670
Members
449,178
Latest member
Emilou

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