In this article, you’ll learn how to find the first login and last logout times of employees by using Microsoft Excel functions. To solve this query, we use MAX function for both.
Let’s take an example,
We have data which contain IDS, Login and logout time details of various employees. Each employee can login and log out several times a day. We want to find the first time each employee logged in and the last time they logged out.
To return maximum login time, follow below given steps:-
Note: - This is an array formula.
Now, we will calculate Log out time. Follow below given steps:-
You can see in the above image that we have used MAX function to get the minimum login time and, to get the maximum log out time, we have used MAX function.
In this way, we can find the first login and last logout times for each employee by using Microsoft Excel function.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at firstname.lastname@example.org
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.