If you want the 17th character to only be a "V" then the formula is simpler:
=SUMPRODUCT(--A2:A5,--(MID(B2:B5,17,1)="V"),--(C2:C5="XX"),D2:D5)
or
=SUMIFS(D2:D5,A2:A5,TRUE,B2:B5,REPT("?",16)&"V??",C2:C5,"XX")
Neither are case sensitive.
The SUMIFS() formula is faster and also validates that...