Hello, the below formulae exist in my sheet. The first one works whilst the second returns a #invalidref error. The snapshot shows that all references exist and are active in the sheet. The second one shows the correct cross reference for the difference in which the calculations are fine. Even more confusing is the broken formula works in the original source sheet (the one for ALL locations). Please help me find what's broken, thanks!
works fine: =IF(COUNTIFS({HospState}, "", {Dept}, Departments@row, {HospAffil}, "yes", {loc}, "philadelphia") = 0, "", COUNTIFS({HospState}, "", {Dept}, Departments@row, {HospAffil}, "yes", {loc}, "philadelphia"))
doesn't work: =IF(COUNTIFS({HospCity}, "", {Dept}, Departments@row, {HospAffil}, "yes", {loc}, "philadelphia") = 0, "", COUNTIFS({HospCity}, "", {Dept}, Departments@row, {HospAffil}, "yes", {loc}, "philadelphia"))