Imagine I have a Google spreadsheet that tracks whether or not a given guest is at a party. Each row in one sheet, Activity, notes a guest name and whether they have “arrived” or “departed.” Another sheet, Presence, should show who is currently at the party. How would I construct a formula to check whether or not an activity row exists that says “departed” for every guest who has “arrived”? I’ve been thinking about trying to use MAXIFS, or perhaps FILTER, but I can’t figure out how to construct the formula to do what I need.
Activity table
Time | Person | Action |
---|---|---|
7:01pm | John | Arrived |
8:03pm | John | Departed |
8:17pm | Suzy | Arrived |
9:12pm | John | Arrived |
Presence table (assume time is now 9:30pm)
Person | Present now |
---|---|
John | Yes |
Suzy | Yes |
If you don't need to compare times, but just to find last value, you can use XLOOKUP:
As an array, so it "expands" to the whole column:
And, if you want to grab also the names, and generate the whole table expanding with new names: