Hi

You could also try

=SUMPRODUCT(--(ISNUMBER(SEARCH({"Idle Time","Oil Stock"},A2:A15)))*C2:C15)