There are 12 values total; 6 entries each for Red and Blue.

All data is inExcel Tablenameddatain the range B5:C16.

This formula is a good example ofnestingone function inside another.

Excel formula: Sum top n values

This is done with theTAKE function.

This is done with theSUM function.

TAKE returns the first 3 values to SUM:

And SUM returns 17 as a final result.

Excel formula: Sum last n columns

This is the sum of the first 3 quantities for “Red”.

The output from FILTER is dynamic.

If source data or criteria change, FILTER will return a new set of results.

Excel formula: FILTER on first or last n values

The number of rows and columns to return is provided by separaterowsandcolumnsarguments.

Rows and columns can be extracted from the start or end of the given array.

SUM Function

The Excel SUM function returns the sum of values supplied.

Excel formula: Lookup first negative value

These values can be numbers, cell references, ranges, arrays, and constants, in any combination.

SUM can handle up to 255 individual arguments.

Excel FILTER function

Excel TAKE function

Excel SUM function