If your VLOOKUP formula needs a helper column, try DGET instead.
A simple switch to SUMIFS can make your formulas easier to expand, read, and maintain as your spreadsheets grow.