I am trying to query a list of timestamps, unique IDs, and data that looks like this:
A - Unique ID
B,C,D,E - Data, but only E is important
F - Timestamp
I want to return A and E where F is the most recent timestamp.
Currently I am using the following query but it returns multiple IDs and timestamps instead of just the MAX timestamps:
=QUERY(A:F,"SELECT MAX(F),A,E WHERE E != '' GROUP BY A,E")
Any ideas?
See if this works
=ArrayFormula(iferror(vlookup(unique(Sheet1!A2:A), sort({Sheet1!A2:A, Sheet1!E2:E, Sheet1!F2:F }, 3, 0), {1, 2, 3}, 0)))
EXPLANATION: