It is possible to do this with VLOOKUP, though it requires extra coercion, and it most certainly will be a lot less efficient than SUMIF for that purpose.
SUMIF was desgined to do just what you require. There is no better, nor faster function available.
Regards