To return zero instead of #N/A when the VLOOKUP function cannot find the correct relative result, you just need to change the ordinary formula to another one in Excel.
Select the cell you want to use VLOOKUP function, and type this formula =IFERROR(VLOOKUP(A13,$A$2:$C$10,3,0),0), drag the autofill handle to the range you need. See screenshot:
Tips:
(1) In the above formula, A13 is the lookup value, A2:C10 is the table array range, and 3 is the index column number. The last 0 is the value you want to show when the VLOOKUP cannot find the relative value.
(2) This method will replace all kinds of errors with the number 0, including #DIV/0, #REF!, #N/A, etc.
Ref: https://www.extendoffice.com/documents/excel/2628-excel-vlookup-return-instead-of-n-a.html