Tracking Login/Logout Times for users multiple login/logouts on the multiple days.

mei marry

New Member
Joined
Apr 8, 2025
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Newbie in MS EXCEL here.

I am in the process of figuring out how to make this work. I need to be able to track my beginning and ending Login/Logout times for my end-users.
I need to track end-users login and log-out times. The issue is they can log in and out multiple times a day.
Ideally, I would like to be able to take the below and automate it to just put it in and take the first login and last logout of each day of the week and compile it.
If I could paste multiple users which all would follow the same format altogether and separate per name and day of the week.
I don't know much about VBA yet but I am learning and this one is going over my head.
The format is below.
 

Attachments

  • SAMPLE.png
    SAMPLE.png
    149.3 KB · Views: 12
MINIFS()
AND
MAXIFS()

should do that for you
I assume the date is in L1 and you are using a merged cell
so something like

For check in
=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
for check out
=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)

I have fixed the date to L1 - so when copy across to new sections for dates L1 will need to be change to O1

rough mock up

Book4
ABCDEFGHIJKLM
1Date4/1/25
24/1/254/1/25 5:337015check in
34/1/254/1/25 6:207015check incheck inCheck out
44/1/254/1/25 7:077015check in701505:33:0011:02:00
54/1/254/1/25 7:547015Check out
64/1/254/1/25 8:417015Check out
74/1/254/1/25 9:287015Check out
84/1/254/1/25 10:157015Check out
94/1/254/1/25 11:027015Check out
10
11
12
Sheet1
Cell Formulas
RangeFormula
L4L4=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
M4M4=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
Solution
MINIFS()
AND
MAXIFS()

should do that for you
I assume the date is in L1 and you are using a merged cell
so something like

For check in
=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
for check out
=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)

I have fixed the date to L1 - so when copy across to new sections for dates L1 will need to be change to O1

rough mock up

Book4
ABCDEFGHIJKLM
1Date4/1/25
24/1/254/1/25 5:337015check in
34/1/254/1/25 6:207015check incheck inCheck out
44/1/254/1/25 7:077015check in701505:33:0011:02:00
54/1/254/1/25 7:547015Check out
64/1/254/1/25 8:417015Check out
74/1/254/1/25 9:287015Check out
84/1/254/1/25 10:157015Check out
94/1/254/1/25 11:027015Check out
10
11
12
Sheet1
Cell Formulas
RangeFormula
L4L4=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
M4M4=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
Hello,
 
Upvote 0
MINIFS()
AND
MAXIFS()

should do that for you
I assume the date is in L1 and you are using a merged cell
so something like

For check in
=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
for check out
=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)

I have fixed the date to L1 - so when copy across to new sections for dates L1 will need to be change to O1

rough mock up

Book4
ABCDEFGHIJKLM
1Date4/1/25
24/1/254/1/25 5:337015check in
34/1/254/1/25 6:207015check incheck inCheck out
44/1/254/1/25 7:077015check in701505:33:0011:02:00
54/1/254/1/25 7:547015Check out
64/1/254/1/25 8:417015Check out
74/1/254/1/25 9:287015Check out
84/1/254/1/25 10:157015Check out
94/1/254/1/25 11:027015Check out
10
11
12
Sheet1
Cell Formulas
RangeFormula
L4L4=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
M4M4=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone

MINIFS()
AND
MAXIFS()

should do that for you
I assume the date is in L1 and you are using a merged cell
so something like

For check in
=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
for check out
=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)

I have fixed the date to L1 - so when copy across to new sections for dates L1 will need to be change to O1

rough mock up

Book4
ABCDEFGHIJKLM
1Date4/1/25
24/1/254/1/25 5:337015check in
34/1/254/1/25 6:207015check incheck inCheck out
44/1/254/1/25 7:077015check in701505:33:0011:02:00
54/1/254/1/25 7:547015Check out
64/1/254/1/25 8:417015Check out
74/1/254/1/25 9:287015Check out
84/1/254/1/25 10:157015Check out
94/1/254/1/25 11:027015Check out
10
11
12
Sheet1
Cell Formulas
RangeFormula
L4L4=MINIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,L$3)
M4M4=MAXIFS($B$2:$B$20,$C$2:$C$20,$J4,$A$2:$A$20,$L$1,$D$2:$D$20,M$3)


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
Thank you for your help. I already try the formula and its working. Thank you so much!!!
 
Upvote 0

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