Finding Average value based on multiple criteria (multiple values)

bootstrap

New Member
Joined
Oct 16, 2014
Messages
3
Hi Excel Pros,

Table:
Name Price New/Old
A 10 Y
A 20 N
B 35 Y
B 45 Y
C 50 N
C 60 Y
[TABLE="width: 264"]
<tbody>[TR]
[TD]If I want to find: The average price when name = A and New/Old = Y:

IFERROR(AVERAGEIFS($B$2:$B$7, $A$2:$A$7, "A", $C$2:$C$7, "Y"),"") = 10

[/TD]
[/TR]
</tbody>[/TABLE]
This is working perfectly

However, I don't know how to find: The average price when name = A or B and New/Old = Y.
The correct answer is supposed to be: (10+35+45)/3 = 30

Thanks in advance!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
try

Code:
=SUM(SUMIFS(B2:B7,C2:C7,"Y",A2:A7,{"A","B"}))/SUM(COUNTIFS(C2:C7,"Y",A2:A7,{"A","B"}))
 
Upvote 0
Thanks everyone for reading this post! I have the solution already. Please do not waste your time on this anymore!
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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