Google-sheets – How to sort the types of materials from one column

google sheets

I have in Sheet1, column B, 5 types of materials. In column L, I have numbered the position of each one.
So, Position 1 to 6, is 'Plastic tube':

enter image description here

I need a formula, in Sheet2, that can calculate this automatically, so for each type of material to show in what position can be found.

Like this:

enter image description here

or

enter image description here

It would be better if can be search by position, because the types of material can be one, 2, or more.

Link: https://docs.google.com/spreadsheets/d/1CDdvFChCx2_1bZ3rY2ZApQOjOM22rTcLx4mUllNqYqw/edit?usp=sharing

Best Answer

'What is the difference between Plastic tube in 1,2,3,4,5,6 and Plastic tube in 15,16,17" - there is no difference. Just to show what kind of material is in each position. I tried with IFERROR but not working as I want to.