Hi @ScottC ,
Here’s how you can modify the Category Tracker report to filter by an Account.
You need to add a lookup for the Account column, get the range of that column and then filter the query in L12 with the selected account,.
Here’s the details:
Open the hidden part of the sheet and add fill down L9:O9 one row to the 10th row.
In L10: Change Categories to Transactions
In M10: Change Hide From Report to Account
This will lookup the column for Accounts in the Transactions tab. If you move your Transaction columns, the formula will still work.
You need a cell somewhere to put the Account name you want to filter by.
As an example, let’s use F5.
Then, you will need to change the formula in L12 to add the Account column to the query and filter by the account name.
Change:
=iferror(QUERY({INDIRECT(O3),INDIRECT(O4),INDIRECT(O5)},"SELECT Col1, SUM(Col2) WHERE Col1 <> '' AND Col3 >= DATE """ & text($E$2, "yyyy-mm-dd") & """ AND Col3 <= DATE """ & text($G$2, "yyyy-mm-dd") & """ GROUP BY Col1 LABEL SUM(Col2) '', Col1 ''"))
To:
=iferror(QUERY({INDIRECT(O3),INDIRECT(O4),INDIRECT(O5),INDIRECT(O10)},"SELECT Col1, SUM(Col2) WHERE Col4 = '"&F5&"' AND Col1 <> '' AND Col3 >= DATE """ & text($E$2, "yyyy-mm-dd") & """ AND Col3 <= DATE """ & text($G$2, "yyyy-mm-dd") & """ GROUP BY Col1 LABEL SUM(Col2) '', Col1 ''"))
Notice the added INDIRECT(O10) and the added Col4 = ‘“&F5&”’ AND
This should filter by one account.
Filtering by multiple accounts makes this more complicated. You would need to select which accounts and add them to the filter query. Same idea as filtering by one account.
Does that help?
Jon