I am trying to pull info from one sheet to another, using 4 constraints to specify which information needs to be pulled. I am using an Index/Aggregate function which can be seen here:

=INDEX('Reference Sheet'!$F$3:$F$10000,1/(1/AGREGAT(14,6,--('Reference Sheet'!$B$3:$B$10000&'Reference Sheet'!$D$3:$D$10000&'Reference Sheet'!$H$3:$H$10000&'Reference Sheet'!$G$3:$G$10000='Output Sheet'!$D6&'Output Sheet'!AF$4&'Output Sheet'!AF$2&'Output Sheet'!AF$3)*LIGNE('Reference Sheet'!$L$1:$L$9998),1)))

A 'DIV/0' error is being returned in the cell I have entered the above function in. I think the problem is with the Aggregate function, however I do not know what the issue is. Any help is appreciated. Thanks!