4
1
I've got data in sort of a directory tree layout (See picture)
Basically I want to use one lookup code as a reference point and have excel look upwards in the respective columns to display the "parent directories".
Currently I have an index which tells me exactly what code is what, but I want to setup a lookup tool (See lower table in the image below) that shows me all levels at once. In the picture I inputted the values I want to return using formulas.
So if I input a level 4 code, I want to use formulas that will return the level 4, 3, 2, and 1 programs. For a level 3 code, I want it to lookup to return level 3, 2, and 1 programs.
There are 10,000+ lines of data.
It seems so simple to me.... Start at this row and look upwards in this column until you reach a value..... But it seems it's not so simple.
Any help/tips will be greatly appreciated!
-Alex
This may start you in the right direction (confirm with ctrl+shift+enter):
=MAX(IF(NOT(ISBLANK(OFFSET(A2,,,MATCH(H2,D2:D6,0)))),ROW(A2:A6),""))
. Assuming data is in A1:F6, returns the row of the first non-blank cell in column A, looking up from the code entered in H2. I can most likely post a more complete answer tomorrow. – Kyle – 2016-03-03T02:36:22.337