I am trying to find a way to join these two formulas into one formula:

=SUMIF(W5:W20,"="&Cover!G2,C5:C20) & =VLOOKUP(A5,Cover!$A$2:$J$14,10,FALSE)

the section "W5:W20" in the Sumif formula contains the Vlookup formula shown above.

I tried doing this but do not get the reults:

=SUMIF(VLOOKUP(A5:20,Cover!$A$2:$J$14,10,FALSE),"="&Cover!G2,C5:C20)