Excel formula needed

Joined
Mar 4, 2014
Messages
12
Reaction score
0
I am trying to formulate something specific and encompassing seemingly way more than one function at once. Here's what I want to do:

Step 1: calculate the average of the 10 lowest numbers of the most recent 20.
Step 2: multiply that number by .96, and then I want to truncate that yield to one decimal point.

Further, if there are fewer than 20 numbers in the spreadsheet, I don't want to average the 10 lowest. For example, if there are only 10 numbers, I want to average the lowest 3, then follow step 2 above.

I know this formula, if possible, will be rather lengthy. If it could be explained in words what all the nesting is and what the parts of the formula mean, I would appreciate it!
 

bklynboy

VIP Member
Joined
Oct 12, 2011
Messages
595
Reaction score
112
Country
United States
Though not an accounting question you could use the following (which I found in an Excel forum):

=ROUND((SUM(SMALL(B1:B23,ROW(INDIRECT("1:10")))))*0.96,1)

Since this is an array formula, you must press Ctrl+Shift+Enter rather than just Enter when you first enter the formula and whenever you edit it later. You can adjust the formula based on number of rows looking to capture or use IF statements to do different alternatives.

B1:B23 is where data is located
ROUND returns the result to one decimal point
SMALL - returns the smallest value in the set
INDIRECT is the set of numbers to return (10 in this case)
ROW is the reference to number of rows
SUM adds up the 10 smallest values
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
11,636
Messages
27,585
Members
21,386
Latest member
dataanalyticsinandorra

Latest Threads

Top