I want to calculate the average of top 3 items in a list. Can someone help mw with this?
Try:
=AVERAGE(LARGE(C1:C7,{1,2,3}))
where C1:C7 is your range.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Thanks - I want the numbers in corresponding cells in another column to be added. is there a formula for the same?
Do you mean?
=SUM(LARGE(C1:C7,{1,2,3}))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Sounds like you want to find the largest 3 values in column A and average the corresponding values for those rows in column B. One possibility is
=AVERAGE(IF(A2:A100>=LARGE(A2:A100,3),B2:B100))
confirmed with CTRL+SHIFT+ENTER
....but that might average more than 3 values if you have ties in column A, e.g. if column A contains only these values
3,4,4,5,5
then the above would average 4 values, i.e. those associated with the 2 fours and 2 fives, is that how it should work?
Maybe then you want:
=SUMIF(C2:C100,">="&LARGE(C2:C100,3),F2:F100)
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks