Averaging

Corkster

New Member
Joined
Nov 10, 2009
Messages
21
Office Version
  1. 365
Platform
  1. Windows
How do I create a formula that takes the lowest 4 numbers from the last 7 columns and creates their average?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
How do I create a formula that takes the lowest 4 numbers from the last 7 columns and creates their average?
Will there always be at 7 numbers?

Are there any empty cells within the range that need to be accounted for?
 
Upvote 0
Will there always be at 7 numbers?

Are there any empty cells within the range that need to be accounted for?

Yess there will always be at least 7 numbers and in some cases up to 20 numbers entered. I only want to examine the last 7 entries of actual numbers and not empty cells in the range as there will be some of those.
 
Upvote 0
So the question is how do I average the lowest for numbers from the last seven numbers enters, which could be the last 7 or more columns depending on blank cells in some of the columns.

Am I understanding this correctly?

The small function

(=small(array,1) + small(array,2 + small(array,3) +small(array,4)) / 4)

is what you are looking for, but the array definition is creating a problem.
 
Upvote 0
Yess there will always be at least 7 numbers and in some cases up to 20 numbers entered. I only want to examine the last 7 entries of actual numbers and not empty cells in the range as there will be some of those.
Try this...

Book1
ABCDEFGHIJKLMNOPQRST
1AVG___________________
219.591133856203812___2531__1152_3083
Sheet1

This array formula entered in A2:

=AVERAGE(SMALL(INDEX(B2:T2,LARGE((COLUMN(B2:T2)-COLUMN(B2)+1)*ISNUMBER(B2:T2),7)):T2,{1;2;3;4}))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,943
Latest member
Newbie4296

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