Sumifs??

pmpalma

New Member
Joined
Mar 26, 2013
Messages
16
Trying to get an average from two disctinct arrays when two conditions exist

For instance

=IF(SUM(WP6:XY6,YD6:YL6)>0,AVERAGE(WP6:XY6,YD6:YL6),"")

Which is fine, but I would like it to work when WP4:XY4 AND YD4:YL4 = to either CC or AB

Can someone please help out??

I've been banging my head on this bloody desk for the past three hours to no avail

Thx
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
See if this example helps

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
1
Result​
2
7​
3
4
AB​
AC​
CC​
CB​
CC​
CC​
AB​
AC​
CC​
CB​
CB​
CC​
5
6
3​
10​
8​
5​
4​
3​
10​
2​
12​
10​
8​
9​
7

Formula in B2
=IF(SUM(B6:G6,I6:N6)>0,SUM(SUMIF(B4:G4,{"AB";"CC"},B6:G6),SUMIF(I4:N4,{"AB";"CC"},I6:N6))/SUM(COUNTIF(B4:G4,{"AB";"CC"}),COUNTIF(I4:N4,{"AB";"CC"})),"")

M.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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