Thank you Nacky!
I had to change it a bit, the row / offset did not work. so I ended up just with
IF(L2>=2,SUM(N2,MATCH(J2,INDIRECT(CONCATENATE("$A",(N2+2),":$A$24")),0)),0)
where N2 is based on the first match (looking for 2nd match to then index)
Never encountered indirect before...