One observation, the value, 103 in cell N14 is formatted as text, which cannot be directly compared to the value, 103 in cell N2, which is formatted as a number. You need the format to be consistent for this to work.
Once you have corrected the format of N14, enter this formula into P2, and confirm it as an array formula.
=IFERROR(INDEX($AQ$2:$AQ$15,MATCH(2,1/(($K$2:$K$15=K2)*($L$2:$L$15=L2)*($M$2:$M$15=M2)*($N$2:$N$15=N2)*(ROW($K$2:$K$15)<>ROW(K2))))),"")
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
edit:-
That might struggle to cope with 12,000 rows, maybe a helper column is needed.
Bookmarks