I am trying to make a google sheet based off of attendance check-in and check-out times at the facility I work at to show how many individuals are in the building at different points during the day.
In one column I have check-in time, in another column I have check-out time and in a third column I have the different timestamps where I want to know the total attendance at that timestamp.
The best I've been able to come up with is =arrayformula(COUNTIF(A2:A,EQ(D2,MEDIAN(A$2:A,B$2:B,D2))))
but it's not returning any values. I've included an example sheet that shows what information I have available.