Been working on this problem for 3 days, cant seem to get it right. I am working off of the general principles for dependent drop-down list from here http://www.contextures.com/xlDataVal15.html
On the Lists tab, instead of typing in each list, I thought it would be better to create a pivot table for each list that pulls from the ProgramModules Tab. For purposes of this issue, I have a pivot in Lists!B2 with data range 'ProgramModules'!$C$5:$C$400. This works...but I have to manually remove items from the list. I would rather dynamically build the range for the pivot table based upon the header in the Lists Tab for each column.
Using Column B, with Header as "ACTIVITIES", I am trying to build a dynamic formula that will a unique set of value from everything below ProgramModules!C4 where the adjacent cell in ProgramModules!B:B = Activities. I do this using
=INDEX(ProgramModules!$B:$B,MATCH(Lists!B$1,ProgramModules!$B:$B,0)):INDEX(ProgramModules!$B:$B,COUNTIF(ProgramModules!$B:$B,Lists!B1))
The First part (before the colon) should find the first cell reference instance of the Value of Lists!B1 ("Activities") in the B Column of ProgramModules. The second part should find the last cell reference.
But when I Use this formula for the pivot table range I get an error telling the " Data Source Reference is not valid".
I feel like I'm 99.9% of the way, but some syntax thing is getting the best of me.
Can someone please help!
Attached is the file I am working with.
Bookmarks