Excel formula

Steve lewis

New Member
Joined
Jan 18, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I hope you can help and I explain clearly.
I have a task whereby I have to show;
  1. The first date a unique ID failed to login
  2. The first time they successfully logged in.
  3. The last time they logged in and
  4. The amount of times they logged in.
I can do it manually no problem of course but there 639,904 rows and at least 144 unique IDs.

I managed to show the amount of times they logged in using '=SUMPRODUCT(SUBTOTAL(103, OFFSET(D2:D639902, ROW(D2:D639902) - MIN(ROW(D2:D639902)),,1)), --(ISNUMBER(FIND(J1, D2:D639902))))' but I was hoping I could use a formula for each of the results required to make life easier.


EDIT: The formula for the amount of logins doesn't work based in an entry it only works based on my filtering.
 

Attachments

  • Copy of spread sheet.PNG
    Copy of spread sheet.PNG
    50.9 KB · Views: 6
Last edited by a moderator:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
MrExcelPlayground20 (version 1).xlsb
ABCDEFGHIJ
1DateLoginResult
212/24/2023MaryFail
31/1/2024JamieFailLoginFirst Failfirst SuccessLast LoginLogins
41/1/2024FredLoginFred1/17/20241/1/20243/20/20248
51/6/2024FredLoginJamie1/1/20241/8/20242/13/20244
61/8/2024JamieLoginJohn 4/10/20244/10/20241
71/9/2024MaryForgotPasswordMary12/24/20231/15/20243/15/20245
81/11/2024JamieLoginSally1/11/20244/8/20244/8/20241
91/11/2024FredLogin
101/11/2024SallyFail
111/13/2024SallyTimeout
121/15/2024MaryLogin
131/17/2024FredFail
141/18/2024FredLogin
151/30/2024MaryLogin
161/30/2024JamieLogin
172/2/2024FredLogout
182/2/2024MaryLogin
192/13/2024JamieLogin
202/20/2024FredLogout
212/21/2024FredLogin
222/29/2024MaryLogin
233/3/2024JamieLogout
243/8/2024FredLogin
253/9/2024FredLogin
263/12/2024JamieFail
273/15/2024MaryLogin
283/18/2024JamieForgotPassword
293/20/2024FredLogin
304/4/2024SallyTimeout
314/8/2024SallyLogin
324/9/2024MaryForgotPassword
334/10/2024JohnLogin
Sheet26
Cell Formulas
RangeFormula
F4:F8F4=SORT(UNIQUE(Table1[Login]))
G4:G8G4=IFERROR(MIN(FILTER(Table1[Date],(Table1[Login]=F4)*(Table1[Result]="Fail"))),"")
H4:H8H4=IFERROR(MIN(FILTER(Table1[Date],(Table1[Login]=F4)*(Table1[Result]="Login"))),"")
I4:I8I4=IFERROR(MAX(FILTER(Table1[Date],(Table1[Login]=F4)*(Table1[Result]="Login"))),"")
J4:J8J4=IFERROR(ROWS(FILTER(Table1[Date],(Table1[Login]=F4)*(Table1[Result]="Login"))),"")
Dynamic array formulas.
 
Upvote 1
Solution
Thank you so much, took me a while to work out what you had done but got it in the end. Saved me a lot of monotonous time
 
Upvote 0

Forum statistics

Threads
1,215,184
Messages
6,123,533
Members
449,106
Latest member
techog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top