In this informative session, we delve into the versatile SUBTOTAL function in Excel. Unlike its name suggests, the SUBTOTAL function can perform various calculations including sum, average, count, and more, on a given dataset. The video explains how to use different function codes within SUBTOTAL to achieve these calculations and illustrates how the results dynamically change when filters are applied or rows are hidden. Key differences between using codes like 9 and 109 are also highlighted to show how they impact hidden data visibility in your results.

What will you learn

  • How to write the SUBTOTAL function in Excel.
  • Understanding the different function codes used within SUBTOTAL.
  • Performing multiple types of calculations (sum, average, count, etc.) with SUBTOTAL.
  • The impact of applying filters on SUBTOTAL results.
  • How to handle hidden rows with different SUBTOTAL codes.
  • The benefits of using SUBTOTAL over regular SUM or AVERAGE functions.

Takeaway notes

  • SUBTOTAL is not just limited to summing up values; it supports various function codes for different operations.
  • Function codes are crucial: for example, '9' for sum, '1' for average, use the prefix '10' (e.g., '109') to include hidden data in calculations.
  • SUBTOTAL dynamically updates its results based on any applied filters.
  • When hiding rows manually, use the '100' series codes (e.g., '109') to exclude hidden rows from the subtotal.
  • Excel's auto-suggest feature provides a comprehensive list of function codes when typing the SUBTOTAL function.

Practice questions

  1. Write the formula to calculate the sum using the SUBTOTAL function for the range A1:A10.
  2. How would you modify the SUBTOTAL function to compute the average for the range B1:B20?
  3. Explain the difference between using function code '9' and '109' within a SUBTOTAL function.
  4. Write a SUBTOTAL formula that counts the number of cells in the range C1:C30.
  5. Using a dataset in the range D1:D50, how would you set a SUBTOTAL function to find the maximum value?
  6. Demonstrate how SUBTOTAL changes when applying a filter to show only values greater than a specified number.
  7. What happens to the result of SUBTOTAL when rows within its range are manually hidden?
  8. Write the formula to sum the values in the range E1:E15 while excluding manually hidden rows.
  9. How can you use SUBTOTAL to compute the variance of values in the range F1:F10?
  10. Create a scenario where using SUBTOTAL is more advantageous than using a standard SUM function.
  11. Explain how SUBTOTAL updates automatically and provide an example.
  12. What is the significance of the '100' series codes in SUBTOTAL, and provide a practical use case?
  13. Describe a situation where applying filters would significantly alter the output of a SUBTOTAL function.
  14. Write a formula to calculate the minimum value in the range G1:G25 using SUBTOTAL.
  15. Provide a step-by-step guide to using the auto-suggest feature in Excel to find and apply the suitable code for the SUBTOTAL function.

Mark Lesson Complete (Mastering the SUBTOTAL Function in Excel)