A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Let's try to walk through it on the forum, to (eventually?) provide the full solution to other people who might have to solve similar challenges in the future
There was a missing parens near the end (that's the risk of aircode in forums)
OFFSET(A1,1,MATCH(H1,1:1,FALSE)-1,COUNTA(OFFSET(A1,1,MATCH(H1,1:1,FALSE)-1,100,1)),1)
Looking back at your original screenshot, there is one other concern (although it may not be critical to you). The CountA function will count the number of cells in that column that are not blank, and that is how many cells will be included in the drop-down list. Because your "working area" is in A and B below your data range, those will get picked up by the CountA.
The impact is that when someone selects Agriculture, they will have two blank options at the bottom of the dependent list (the range starts at the top and includes blank cells, whereas the CountA ignores blank cells).
When the user selects Appropriation, they will have one extra blank.
That really only matters if you want to prevent them from selecting blanks, but if it does matter to you then I'd suggest changing the location of those selection lists so they are not within the columns of data that the formula can reference