A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
After sleeping on it, I got an idea and it now works.
=IFERROR(INDEX(I:I;MATCH($A$7;E:E;0));)
This formula works just as i needed it to work.
Now for step 2 i would need to add some kind of filter to it that would take that first result, find it on E:E list and do the same but if its not on E:E list than just copy the result. And i would have to repeat that process 5 times.
So basically i need to take =IFERROR(INDEX(I:I;MATCH($A$7;E:E;0));) and somehow make it decide whether to copy(if its not in E:E) or find new items(if it is in E:E).
Than on last one i would need to take all results with same name and show them as 1 result with sum of their quantity.