AVERAGEIFS with SUM as AVERAGE_RANGE

MrPez

Board Regular
Joined
Jan 28, 2010
Messages
128
I'm trying to get a formula working that averages a bunch of numbers based on two conditions. The problem I'm having is that my Average_rng needs to be the sum of two other cells and it doesn't seem to work.

Can anyone help?

My formula is:

Code:
=AVERAGEIFS(SUM('Input Data'!K:L),'Input Data'!H:H,A4,'Input Data'!J:J,">0")
I'm trying to set this as an array formula but it won't accept. :(

If I have an other column that sums columns K and L it works but this isn't really feasable unfortunately.
 
Sorry, the original included a sum column that I had put in while trying to figure it out. That isn't going to be an option in the long term.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
IEssentially I need the average of the sum of columns b and c where the condition in A is met and ignore NULL and 0
 
Upvote 0
What i gave you will work if you change null to 0. That will be easier than trying to convert null to 0 in a formula.
 
Upvote 0
Thanks Steve, I appreciate your help, although I didn't manage to get it to work!
I did, however, come up with a very messy workaround in case anyone is in a similar situation:
=AVERAGE(IF(A1:A8=F2,IF(NOT(ISNUMBER(1/B1:B8)),IF(NOT(ISNUMBER(1/C1:C8)),"",C1:C8),IF(NOT(ISNUMBER(1/C1:C8)),B1:B8,B1:B8+C1:C8)),""))
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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