1
2
gogle sheets database
Hello, I am a search and rescue volunteer. I need an application that can count and list volunteers entering and exiting the disaster area. I got the counting part done, but I'm having trouble creating a list. Can you please help me with this? Thank you!
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ],
AND([Durum] = "GฤฐRฤฐล", [maps id] = LOOKUP([_THISROW], "gรผvenlik", "maps id", "maps id")))
I can filter and count based on the desired value using this formula. However, I'm having trouble excluding entries where the [Durum] = "รIKIล". I created two virtual columns for entry and exit and listed them separately. Then I tried another virtual column, but still couldn't solve it. What is your suggestion? (DURUM=STATUS, GฤฐRฤฐล=ENTER, รIKIล=EXฤฐT; turkish)
Solved! Go to Solution.
INTERSECT(
INTERSECT(
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [Durum] = "GฤฐRฤฐล"),
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [maps id] = [_THISROW].[MapKey])
),
INTERSECT(
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [Durum] = "รIKIล"),
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [maps id] = [_THISROW].[MapKey])
)
)
Not 100% sure what you are looking for. Your existing SELECT() formula should already exclude "Exits" away as it's looking only Enters. Would you please elaborate your case, thanks.
Hi but;
test2 ----------SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ],
AND([Durum] = "GฤฐRฤฐล", [maps id] = LOOKUP([_THISROW], "gรผvenlik", "maps id", "maps id")))
I need a formula that will show only the volunteer named Veli. because he entered the field and did not leave.
Here might be an approach:
Thank you for your suggestion. However, the work areas are separate. The (maps id) entry table will not be common, the people entering and exiting each field will be listed separately, so I need to use a reference table.
SELECT DISTINCT gรผvenlik[Gรถnรผllรผ adฤฑ]
WHERE AND(
[Durum] = "GฤฐRฤฐล",
[maps id] NOT IN (
SELECT DISTINCT gรผvenlik[maps id]
WHERE AND(
[Durum] = "รIKIล",
[maps id] = LOOKUP([_THISROW], "gรผvenlik", "maps id", "maps id")
)
)
)
gemini ai gave this formula but it was not solved ๐
INTERSECT(
INTERSECT(
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [Durum] = "GฤฐRฤฐล"),
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [maps id] = [_THISROW].[MapKey])
),
INTERSECT(
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [Durum] = "รIKIล"),
SELECT(gรผvenlik[Gรถnรผllรผ adฤฑ], [maps id] = [_THISROW].[MapKey])
)
)
User | Count |
---|---|
15 | |
9 | |
9 | |
7 | |
3 |