Formula to get average of 3 lowest numbers in range, whilst ignoring 0!

chrisj2812

New Member
Joined
Apr 5, 2020
Messages
12
Office Version
  1. 2019
Hi,

I've used =(AVERAGE(SMALL(range,{1,2,3}))) to get the average of the lowest 3 numbers in my range.

However, if there are only 1 or 2 numbers the 0's in the range are polluting the result. Is there any way to rewrite the formula to ignore them?

Many Thanks

Chris
 

Attachments

  • Screenshot 2021-06-01 102918.jpg
    Screenshot 2021-06-01 102918.jpg
    48.4 KB · Views: 10

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
There must be short way but for now you can Try

Excel Formula:
=(AVERAGE(SMALL($A$2:$A$10,COUNTIF($A$2:$A$10,0)+1))+AVERAGE(SMALL($A$2:$A$10,COUNTIF($A$2:$A$10,0)+2))+AVERAGE(SMALL($A$2:$A$10,COUNTIF($A$2:$A$10,0)+3)))/3
 
Upvote 0
@chrisj2812

If you will only have zeros and negative numbers?
Maybe like..
sample.xlsm
ABCDEFGHIJK
1AW1AW2AW3AW4AW5AW6AW7AW8AW9AW10AW-Av
200-85-82-6700000-78
300-710000000-71
40-68-700000000-69
Sheet1
Cell Formulas
RangeFormula
K2:K4K2=SUM(SMALL(A2:J2,{1,2,3}))/MIN(3,COUNTIF(B2:J2,"<0"))


Hope that helps.
 
Upvote 0
Solution
If number are always negative

you can try

Book1
ABCDEFGHIJK
200-85-82-670-67000-72
3000-74-75-6900-62-52-61
400-710000000#NUM!
Sheet2
Cell Formulas
RangeFormula
K2:K4K2=(AVERAGE(LARGE(A2:J2,COUNTIF(A2:J2,0)+1),LARGE(A2:J2,COUNTIF(A2:J2,0)+2),LARGE(A2:J2,COUNTIF(A2:J2,0)+3)))
 
Upvote 0
If number are always negative

you can try

Book1
ABCDEFGHIJK
200-85-82-670-67000-72
3000-74-75-6900-62-52-61
400-710000000#NUM!
Sheet2
Cell Formulas
RangeFormula
K2:K4K2=(AVERAGE(LARGE(A2:J2,COUNTIF(A2:J2,0)+1),LARGE(A2:J2,COUNTIF(A2:J2,0)+2),LARGE(A2:J2,COUNTIF(A2:J2,0)+3)))

I am sorry @chrisj2812

I did not get it right, ignore my both posts
 
Upvote 0
Guys, Wonderful! Thank you so much for your time and effort! It always amazes me how knowledgeable and helpful you are on this forum.

Really appreciated.
 
Upvote 0

Forum statistics

Threads
1,214,579
Messages
6,120,365
Members
448,956
Latest member
Adamsxl

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