I'm trying to sum rows with specific criteria with the following formula
=ArrayFormula(sum(countifs(disposition,"Consultation" ,Primary,{"","OB_Gyn","Surgical"},Consultations,{"*IM*","*Cardio*","*Nephro*","*Neuro*","*GI*",""})))
where disposition, Primary, Consultations are NamedRanges of columns with same rows 9-58.
But I get the error message.
#value!
Array arguments to COUNTIFS are of different size.