How to Use the SUBTOTAL function to perform several operations
The SUBTOTAL function can be used to calculate subtotals in a list or database. There are different subtotal operations available that are all covered by just one function. The syntax is provided here.
How To use the SUBTOTAL function for a number of calculations:
- Copy the data shown in columns A and B in the image below.
- Select cells C2:C10 and enter the daily sales of each team.
- Calculate the average in cell F2 with the following formula: =SUBTOTAL(1,$C$2:$C$10).
- Calculate the sum in cell F3 with the following formula: =SUBTOTAL(9,$C$2:$C$10).
- Calculate the lowest sales value in cell F4 with the following formula: =SUBTOTAL(5,$C$2:$C$10).
- Calculate the maximum value in cell F5 with the following formula: =SUBTOTAL(4,$C$2:$C$10).
This tip is compatible with Excel 97, 2000, 2003 and 2007.
