I have a newly created Google Sheets tab with 1.000 rows and two formulas:
=IFERROR((VLOOKUP(B2,sv!$A:$D,2,0)/C2+IF(C2=ctr!A$2),""))