Seem like to mark "X" if one ID has "Office Visit" and "Covid Test" in a same day?
G2:
=IF([@[Procedure Category ID]]="Covid Test",IF(COUNTIFS([Svc_Date],[@[Svc_Date]],[Patient ID],[@[Patient ID]],[Procedure Category ID],"Office Visit"),"X",""),"")
Bookmarks