Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Add Outline to Data in Excel
  • Example of COUNTIFS with variable table column in Excel
  • Randomize/ Shuffle List in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How to Create Column Chart in Excel

References

  • How to get address of first cell in range in Excel
  • Two-way lookup with VLOOKUP in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Get nth match with INDEX / MATCH in Excel
  • How to retrieve first match between two ranges in Excel

Data Validations

  • Excel Data validation number multiple 100
  • Excel Data validation require unique number
  • Excel Data validation allow uppercase only
  • Prevent invalid data entering in specific cells
  • Data validation must not exist in list

Sum bottom n values in Excel

by

This tutorial shows how to Sum bottom n values in Excel. You can use a combination of SUMPRODUCT function and SMALL function to get the sum bottom  n values in the example below;

Formula

=SUMPRODUCT(SMALL(range,{1,2,n}))

Explanation

If you need to sum or add the bottom values in a range, you can do so with a formula that uses the SMALL function wrapped inside the SUMPRODUCT function. In the generic form of the formula (above), rng represents a range of cells that contain numeric values and n represents the idea of nth value.

In the example, the active cell contains this formula:

=SUMPRODUCT(SMALL(B4:B13,{1,2,3}))

How this formula works

In its simplest form, SMALL will return the “nth smallest” value in a range. For example, the formula:

=SMALL (A1:A10, 2)

will return the 2nd smallest value in the range A1:A10 which, in the example above, is the number 2.

However, if you supply an “array constant” (e.g. a constant in the form {1,2,3}) to SMALL as the second argument , SMALL will return an array of results instead of a single result. So, the formula:

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

Will return the 1st, 2nd, and 3rd largest value in the range A1:A10. In the example above, where A1:A10 contains the numbers 1-10, the result from SMALL will be the array {1,2,3}. SUMPRODUCT then sums the numbers in this array and returns a total, which is 6.

Using SUMPRODUCT avoids the complexity of entering an array formula, but it is still processing arrays. You can also write an array formula directly using SUM like so:

{=SUM(SMALL(B4:B13,{1,2,3}))}

Note that you must enter this formula as an array formula.

Large N

When N becomes large it becomes tedious to create the array constant by hand – if you want to sum to the bottom 20 or 30 values in a big list of values, typing out an array constant with 20 or 30 items will take a long time. In this case, you can use a shortcut for building the array constant that uses the ROW and INDIRECT functions. For example, if you want to SUM the bottom 20 values in a range called “rng” you can write a formula like this:

=SUMPRODUCT(SMALL(rng,ROW(INDIRECT("1:25"))))

Variable N in another cell

To set up the a formula where N is a variable in another cell, you can concatenate inside INDIRECT. For example, if A1 contains N, you can use:

=SUMPRODUCT(SMALL(range,ROW(INDIRECT("1:"&A1))))

This allows a user to change the value of N directly on the worksheet.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel FALSE Function
  • Check multiple cells are equal in Excel
  • IF with wildcards in Excel
  • SWITCH function example in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation
  • TODAY function: Description, Usage, Syntax, Examples and Explanation
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Count holidays between two dates in Excel
  • Get days between dates in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel
  • If cell contains one of many things in Excel
  • Categorize text with keywords in Excel
  • Map text to numbers in Excel

General

  • Lock Cells in a Worksheet Excel
  • How to increase by percentage in Excel
  • Delete Blank Rows at Once in Excel
  • How to count total columns in range in Excel
  • Share Excel data with Word documents
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning