# Counting number of times signed in / last logged in date

**URL:** https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158
**Category:** Ask for Help
**Created:** [June 19, 2021, 6:41pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158 "2021-06-19T18:41:00Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![powerupmycourses](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/powerupmycourses/32/28042_2.png) [@powerupmycourses](https://community.glideapps.com/u/powerupmycourses)
#### Post date: [June 19, 2021, 6:41pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/1 "2021-06-19T18:41:00Z")

</div>

Is there anyway to count the number of times the person signed into the app (Public App)? I see the App: Logins tab is created (assuming the “Time” is last login? or “Date created”)

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [June 19, 2021, 6:51pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/2 "2021-06-19T18:51:05Z")

</div>

Yes. Just use cointif formula in users sheet to count user emails in login sheet

---

<div class="post-metadata">

### Author: ![powerupmycourses](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/powerupmycourses/32/28042_2.png) [@powerupmycourses](https://community.glideapps.com/u/powerupmycourses)
#### Post date: [June 19, 2021, 6:55pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/3 "2021-06-19T18:55:33Z")

</div>

Oh 🤦‍♂️ I did not realize that was a “log” - do these rows count towards the account limit @Uzo ?

---

<div class="post-metadata">

### Author: ![powerupmycourses](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/powerupmycourses/32/28042_2.png) [@powerupmycourses](https://community.glideapps.com/u/powerupmycourses)
#### Post date: [June 19, 2021, 6:57pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/4 "2021-06-19T18:57:16Z")

</div>

I was actually looking to use this in the app - giving them “points” for logging in along with other actions they would take

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [June 19, 2021, 6:58pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/5 "2021-06-19T18:58:32Z")

</div>

Only rows in users sheet, log in rows don’t count

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [June 19, 2021, 7:16pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/6 "2021-06-19T19:16:39Z")

</div>

> [@powerupmycourses](#):
>
> I was actually looking to use this in the app - giving them “points” for logging in along with other actions they would take

You won’t find App: logins in Glide, but if you want to use the data in your app you can make a copy of the sheet using a query or similar formula. Couple of things to be aware of though…

- although App:logins doesn’t count towards your row limit, if you make a copy of it and use it then all rows in the copy _will_ count
- it only shows actual logins. If a user just closes the app and opens it again a day (or a week) later, they’ll usually still be signed in, and so you won’t see a new login row

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 19, 2021, 10:10pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/7 "2021-06-19T22:10:29Z")

</div>

Another approach is to make a button, let’s say “Check in for today” that the user can only click once daily to increment a counter column, it’s not perfect but if we want to give out awards then I think it’s ok to do it that way 😉

---

<div class="post-metadata">

### Author: ![Ricardo\_Limpias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ricardo_limpias/32/7332_2.png) [@Ricardo\_Limpias](https://community.glideapps.com/u/Ricardo_Limpias)
#### Post date: [May 29, 2023, 1:57pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/8 "2023-05-29T13:57:10Z")

</div>

this was a year ago, is there another way right now ?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [May 29, 2023, 2:03pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/9 "2023-05-29T14:03:43Z")

</div>

It was actually two years ago 🙂

But no, nothing much has changed here. The approach suggested by @ThinhDinh is still probably the best one.

---

<div class="post-metadata">

### Author: ![Mike\_Wrobel](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mike_wrobel/32/66837_2.png) [@Mike\_Wrobel](https://community.glideapps.com/u/Mike_Wrobel)
#### Post date: [November 25, 2023, 12:35am UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/10 "2023-11-25T00:35:40Z")

</div>

Still not really 100% relevant because as was pointed out by Darren, it only counts a login when there is a login. But I used a query of the App: Logins sheet to get the last login date and total number of logins.

=query(‘App: Logins’!A1:B13,“SELECT MAX(A), B, COUNT(A) WHERE A\<\>‘’ GROUP BY B LABEL MAX(A)‘Last Login’,COUNT(A)‘Number of Logins’”,1)

That will give you that at least

---

<div class="post-metadata">

### Author: ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)
#### Post date: [January 17, 2024, 4:49pm UTC](https://community.glideapps.com/t/counting-number-of-times-signed-in-last-logged-in-date/28158/11 "2024-01-17T16:49:09Z")

</div>


