Using google sheets, I'm trying to pull the earliest dates for unique values using the query function.
I want to pull the data so that I only get the first test completed for each unique identifier provided that test was done within 2 days prior or after their ward admission. So it should spit out something like this:
I am using the following formula which is nearly what I want, it's just including multiple values for the unique identifers:
=Query(Sheet1!1:952,"Select A,B,C,D,E where C > -2 and C < 2 and C is not null and E is not null Order By D",1)
Results I'm getting with the above formula
I feel like I'm nearly there, I just need to somehow only pull the minimum date values instead of them all. Any help would be really appreciated!
