All data is in the range B5:B16 andnis entered into cell F5 as 3.

This value can be changed at any time.

In thelatest version of Excel, the easiest way to do this is to use the FILTER function.

Excel formula: Sum every nth column

This is the value returned to FILTER as theincludeargument.

FILTER uses this array to “filter” values in the range B5:B16.

Only values associated with TRUE make it through the filter operation.

Excel formula: Filter every nth row

The result is an array that contains every 3rd value in the data.

Adouble negative(–) is used to convert the TRUE and FALSE values to 1s and 0s.

This formula is also dynamic.

Excel formula: Sum every n rows

The output from FILTER is dynamic.

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

The array can be one dimensional, or two-dimensional, determined byrowsandcolumnsarguments.

Excel FILTER function

MOD Function

The Excel MOD function returns the remainder of two numbers after division.

For example, MOD(10,3) = 1.

The result of MOD carries the same sign as the divisor.

Excel SEQUENCE function

SUM Function

The Excel SUM function returns the sum of values supplied.

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

SUM can handle up to 255 individual arguments.

Excel MOD function

SUMPRODUCT Function

The Excel SUMPRODUCT function multipliesrangesorarraystogether and returns the sum of products.

For example, ROW(C5) returns 5, since C5 is the fifth row in the spreadsheet.

When no reference is provided, ROW returns the row number of the cell which contains the formula.

Excel SUM function

FILTER function basic example

Excel SUMPRODUCT function

Excel ROW function

Article image