How about just a formula?
Row\Col L M N O P Q 1 Products Parts Level2 Level3 2A 111 1818 444 N2 and across and down: =IFERROR(VLOOKUP(M2, $L$2:$M$13, 2, 0), "") 3A 444 4A 555 5A 666 6B 222 7B 111 1818 444 8C 333 1818 444 9C 222 10C 333 1818 444 11111 1818 444 12333 1818 444 131818 444
I converted all the products and parts to text first.
Copy the formula down and right until it returns a column of blanks, as shown in col P.
Bookmarks