Formula to look for reference and return the values to total into an average

HI Guys

Hope you can help

Please see attached sheet on the FULL tab

What I need is to look in column D and for example, look for YAN, grab the value against it in column M and then obtain the average of the respective quantities, displaying these against the label below the main data (in the green highlighted cell)

For example, there are two YAN items with the values 95.46& and 36.25%. Next to the YAN label, the formula would return a value of 65.86% (Sum of 95.46 + 36.25 / 2 = 65.86%)

If you could help as Ive tried lookups and count variations but seem to be a bit stuck - not sure if it needs an array but even this eluded me.

If you could make a suggestion, I would be very grateful

J
EE-Example.xls
Jase AlexanderCompliance ManagerAsked:
Who is Participating?
 
regmigrantConnect With a Mentor Commented:
I may have misunderstood but wouldn't this work?

=AVERAGEIF(D2:D7,F19,M2:M7)*100

the formula looks at the 'range' (d2:d7) compare it to 'criteria' (F19) and calculates the average of 'average_range' (ms:m7) for all the rows that match
0
 
Jase AlexanderCompliance ManagerAuthor Commented:
Amazing

Total mind block today - this helped so much !!

Thank you for the swift response
0
 
regmigrantCommented:
timing is everything :) good luck
0
All Courses

From novice to tech pro — start learning today.