You could use the VBA
equivalent of a standard COUNTIF formula (which can take more than one argument). This can be expanded as required
Standard Formula
=SUM(COUNTIF(A:A, {"SAL","PRE"}))
VBA Equivalent
MsgBox Evaluate("Sum(COUNTIF(A:A,{""PRE"",""SAL""}))")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…