Finding the average of non-zeros from a filtered list

Anglais428v2

New Member
Joined
Jun 19, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a formula that works in that it gives me a filtered list of numbers. The formula is:
=FILTER(Jobs,ISNUMBER(MATCH(Type,$L$3,0))*ISNUMBER(MATCH(SS,$A$3:$A$10,0))*ISNUMBER(MATCH(Reg2,$A23,0)))

I now want to get the average of the list of these numbers but exclude zeros from the calculation. I've been trying to wrap the above formula into an averageifs or average(if formula but it doesn't seem to be working.

Any advise?

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Can't you filter the spill range again, and use average on that range?
just remember to use the CHOOSECOL funtion.

Excel Formula:
=AVERAGE(FILTER(CHOOSECOLS(K4#,6),CHOOSECOLS(K4#,6)<>0))

Or is it more complex than that?
 
Upvote 0
If your formula is in A2 & only has one column try
Excel Formula:
=average(filter(a2#,a2#<>0))
 
Upvote 0
If your formula is in A2 & only has one column try
Excel Formula:
=average(filter(a2#,a2#<>0))
I had tried this and it works, however, I am looking at a solution that does it all in one cell (rather than two separate calculations). But when I add my first formula above to the average formula it doesn't work.
 
Upvote 0
Try
Excel Formula:
=AVERAGE(FILTER(Jobs,ISNUMBER(MATCH(Type,$L$3,0))*ISNUMBER(MATCH(SS,$A$3:$A$10,0))*ISNUMBER(MATCH(REG2,$A23,0))*(Jobs<>0)))
 
Upvote 0

Forum statistics

Threads
1,215,077
Messages
6,122,995
Members
449,094
Latest member
masterms

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