Averageifs

Deb115

New Member
Joined
Feb 15, 2018
Messages
3
Please can anyone help?
If i have 3 columns in excel,, A and B and C
A contains unique names, B contains details about names in A and C contains values for each of those names in A
i want to get average of hte values in C dependant on the details in B.. so i might want an average of the values in column C, if B contains codes X Y OR Z

ie the average of C values if names in A have any one of the details X Y OR Z in B..
if i do averageifs,, i can get the average of column C if any name has X Y OR Z ( but they only have one code so the answer is always DIV0. And i know i could do it if the criteria X Y or Z were in separate columns but they aren’t

i Have spent hours trying to do this. I have used array formulae in past but i think that would also only give me the average of C values if all B criteria are fulfilled but they never are..

I hope you can save a bear of little brain many more hours.....thanks in advance
D
a
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to Mr Excel forum

Maybe...
=SUM(SUMIF(B:B,{"X";"Y";"Z"},C:C))/SUM(COUNTIF(B:B,{"X";"Y";"Z"}))

Hope this helps

M.
 
Upvote 0
Thank you..it worked but only if I copied your formula into my spreadsheet and then amended the ranges and criteria!
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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