This cant be difficult but I just can't see how to do it.
I have Sheet 1 with i.e 3 empty columns, the top row is a data validation dropdown list of i.e. 50 unique header names present in Sheet 2.
Under each of the 50 headers in Sheet 2 there is an unknown number of rows of data.
From each of the 3 dropdown menus in Sheet 1, I simply want to populate that column with all data under that column header in Sheet 2.
Is there a VBA solution?
You don't need VBA for that, just use INDEX and MATCH, with ROW()
In Sheet1, cell A2 for example (if your header for that is in cell A1)
You'll need to adjust the reference but you'll get the idea. You could also use pivot tables for that...
I would always prefer formulas over vba however if you have
unknown
number of rows and50
headers then personally I will never opt in for formulas. Specially if I have to drag it down. Here is a VBA solution.Let's say your Sheet2 looks like this
Paste this in
Sheet1
worksheet code area.Output