How can I add a filter button to data on the same worksheet?
How can I add a filter button to data on the same worksheet?
Isaac
If you use filtering, you don't really need to use data validation too.
In the revision to your workbook attached, on sheet Objective, I selected A2:A6 then applied the filter (Home ribbon/Editing/Sort & Filter/Filter). A2 then has a down arrow for the filter which shows the values in the the range. I changed some data (A10:A16) and the filter list changed automatically. You can then untick SelectAll on the filter and tick the period you want to be displayed.
You might use the SUM function to add up values but that doesn't change when data is filtered. Instead you should use SUBTOTAL which works on only visible data (AND option 9 is SUM). The formula in H18 Revenue is:
=SUBTOTAL(9,H3:H16)
and likewise for K18 Costs. See Don's tutorial SUBTOTAL Function - Work on Filtered Data in Excel for other available options.
Cells I18 and L18 are calculated from H18 and K18. I have no idea what you want to appear in column J!
If you filter the data, you'll see these totals change to suit.
I've applied the same methods to the Data sheet (and frozen panes for ease of viewing) and left it filtered for "Qtr 2".
Hope this is what you want.
=SUBTOTAL(109,H3:H16)
I suggest you think about what you want to do with my Answer and ask a new question if you need some refinement or improvement.