ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Average Formula for the smallest x of xx values (https://www.excelbanter.com/excel-worksheet-functions/211780-average-formula-smallest-x-xx-values.html)

Keith K[_2_]

Average Formula for the smallest x of xx values
 
Any suggestions?

Mike H

Average Formula for the smallest x of xx values
 
Hi,

Maybe this

=AVERAGE(SMALL(A1:A10,{1,2,3}))

Averages the 3 smallest values in A1 - a10.

Mike

"Keith K" wrote:

Any suggestions?


T. Valko

Average Formula for the smallest x of xx values
 
This will average the 3 smallest numbers in the range:

=AVERAGE(SMALL(A1:A10,{1,2,3}))

--
Biff
Microsoft Excel MVP


"Keith K" <Keith wrote in message
...
Any suggestions?




Shane Devenshire[_2_]

Average Formula for the smallest x of xx values
 
Hi,

Try

=AVERAGE(SMALL(A1:A10,ROW(INDIRECT("1:"&B1))))

Where you enter the x in B1.

If you want x and xx to be variables then

=AVERAGE(SMALL(INDIRECT("A1:A"&B1),ROW(INDIRECT("1 :"&B2))))

where B1 tells how many row starting in A1 and B2 tell how many items to be
averaged.

If this helps, please click the Yes button.

Cheers,
Shane Devenshire

"Keith K" wrote:

Any suggestions?


Keith K[_3_]

Average Formula for the smallest x of xx values
 
Thanks for both answers. I will look into the indirect one more closely to
see if it fits my needs also.
Keith



"Shane Devenshire" wrote:

Hi,

Try

=AVERAGE(SMALL(A1:A10,ROW(INDIRECT("1:"&B1))))

Where you enter the x in B1.

If you want x and xx to be variables then

=AVERAGE(SMALL(INDIRECT("A1:A"&B1),ROW(INDIRECT("1 :"&B2))))

where B1 tells how many row starting in A1 and B2 tell how many items to be
averaged.

If this helps, please click the Yes button.

Cheers,
Shane Devenshire

"Keith K" wrote:

Any suggestions?



All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com