To achieve the desired functionality of having your total adjust based on filtered expenses in Excel, you can use the SUBTOTAL function instead of the regular SUM function. The SUBTOTAL function can dynamically calculate totals based on the visible rows after filtering.
Here's how you can do it:
- Replace your current total formula with
=SUBTOTAL(109, range), whererangeis the range of cells you want to sum. The number109specifies that you want to sum only the visible cells (ignoring any that are hidden by filters). - After applying this formula, when you filter your table, the total at the bottom will automatically update to reflect only the visible expenses.
This way, you can filter your budget for certain expenses and see the totals change accordingly.