# Subtotal invoices by age

=SUMIF(age,criteria,amount)

If you need to subtotal invoice amounts by age, you can easily do so with the SUMIF function.

In the example shown, the formula in G5 is:

=SUMIF(age,G5,amount)

Where age is a named range for the range E5:E11, and amount is a named range for D5:D11.

The SUMIF function takes three arguments: range, criteria, and sum_range.

In this case, we are using:

Range: the range of cells (E5:E11) to which criteria in column G is applied.

Criteria: G5 - a reference to the adjacent cell in column G, which contains the criteria. This is a relative address so that it *will* change when copied down.

Sum_range: the range of cells (D5:D11) that is summed when the criteria is TRUE.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

## Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.