Employee tracking (a whole new level)

y3kesprit

Board Regular
Joined
Mar 23, 2010
Messages
133
Good day everyone!

I previously posted asking for help on an employee attendance tracking template. Now I have another similar project on hand and would appreciate if someone can point me in the right direction.

I have uploaded the template for reference.

Link: https://www.dropbox.com/s/pyniotf5x8tju4s/Tracking Template.xlsx

There are two cells for employees to either scan in (report for work) or scan out (knock off from work). This is done using a bar code scanner.

Whenever an employee scans, his/her particulars will appear on the columns B7 and L7 using the VLOOKUP function. The lookup value is based on the entries registered under spread sheet ‘database’ which contains the information of all our employees.

So whenever an employee checks in, an entry of his details should be reflected on row 25 under in office personnel. When this same employee knocks off from work, he will scan out and his entry will shift to out of office personnel instead. Do note that our employees work on shift work including weekends, therefore the check in and check out are usually days apart.

Thus this above part will provide me a snapshot of the employees who are in office and out of office at any one time. Thus employees will appear either in office or out of office, depending on their scanning.

On top of that, I am hoping to achieve another rather complex concept.

That is, for example an employee checks in on the month of May 2014, his entry will appear on another spread sheet titled ‘May 2014’. Likewise, if he has check in in future on Dec 2014, his entry will appear on the spreadsheet of Dec 2014. Is this possible using macro?

Subsequently, when he checks out, the date and time of checking out will be reflected on that very same entry that he checked in. So on one entry, I am able to see when he checks in and out. And in one spreadsheet, example May 2014, I can know when he checked in and out of office for May.

This is a super complicated template… Hope to receive help from the experts here on this forum. Thank you so much!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Is some one able to provide me some head start to this project? If what I'm looking for cannot be fulfilled by excel, i am able to lower the requirements. I would really appreciate it if someone can help meThank you so much!
 
Upvote 0
Hi y3-,

I'll give it a go as far as I can.

First off I will remove ALL merged cells. There is little need for them and they are troublesome when used in areas of data processing. So your page layout will be a bit altered from your posted one. If you require a "must have page format" bring it forward now without merger cells, use "Centered across selection".

I see you have SN's on the UI sheet, is that the designated destination when a Znn is scanned?

Like this...

If Z12 and Z31 are scanned in is the info to align with the S/N like this :

Z12 goes in row 25 of UI sheet
Z31 in row 44 of UI sheet

or should they be listed in rows 25 and 26 and the S/N's 1 & 20 also be brought from DATABASE sheet with name and Dept.?

And when Znn scans out, that Znn info is removed from Scan In columns and goes to Scan Out columns aligned with S/N's or listed in row 25, on down?

Howard
 
Upvote 0
Hi y3-,

I'll give it a go as far as I can.

First off I will remove ALL merged cells. There is little need for them and they are troublesome when used in areas of data processing. So your page layout will be a bit altered from your posted one. If you require a "must have page format" bring it forward now without merger cells, use "Centered across selection".

I see you have SN's on the UI sheet, is that the designated destination when a Znn is scanned?

Like this...

If Z12 and Z31 are scanned in is the info to align with the S/N like this :

Z12 goes in row 25 of UI sheet
Z31 in row 44 of UI sheet

or should they be listed in rows 25 and 26 and the S/N's 1 & 20 also be brought from DATABASE sheet with name and Dept.?

And when Znn scans out, that Znn info is removed from Scan In columns and goes to Scan Out columns aligned with S/N's or listed in row 25, on down?

Howard

Howard, thanks for your help! Once again, I can't thank you enough.

It’s fine that you remove all merged cells. I was not aware of the possible complications. There is no must have format for me as long as all the details stay on the same page as the one I originally posted.

Znn does not match with S/N. It should match with ‘ID’. The S/N column is a generic count of the number of entries I have at any one time. ID here refers to the unique ID that every employee possesses.

Thus when entries are scanned, the S/N does not have to tally. So if I scan Z12 and Z31, please disregard their S/N on master list. They will just fill up row 25 and 26 and so on on sheet UI. Basically you can ignore the transferring of S/N. Its purpose is merely to have a quick look at the number of entries within each column.

--- Regarding scanning out,
When one employee scans out, Znn will be removed and shifted to a new entry on Scan out on row 25 (assuming he is the first to leave office). So basically, employees’ entries will only alternate between in OR out. Do disregard the S/N column. Think of it as a generic column that simply allows the administrator to have a quick count of the employees under each column.

(ideally, an employee should not be able to scan in or out if his name has already appeared under that column. A prompt to signify the error would be ideal.)

If done properly, all employees will first be under the out of office column. As employees come into office one by one, their names will be removed from out of office to the in office column. The timings that they check in will not appear on UI but rather on the respective monthly log sheets.
 
Upvote 0
Update, I am finding some code errors with the example I posted.

Not good to go on sheet UI.

Howard
 
Upvote 0
Hi Howard,

Just gave it a go.

The transferring from IN OFFICE to OUT OF OFFICE works fine. However, when employee scans in for the 2nd time, the entry does not move from OUT OF OFFICE to IN OFFICE again. So this will result in double entry.

P.S. I am not sure whether you are referring to the above problem when you said J4 is missing "Scan In".

Other than that, is it possible for the selected cell to remain at SCAN IN and SCAN OUT whenever a new entry is made? As of now, whenever I press enter after keying a entry, the selected cell will move down and I have to manually select B5 and J5 again.

Hi y3-,

Wring this UI sheet out as you would use it at work. Still only from sheet DATABASE to sheet UI.

https://www.dropbox.com/s/kqdmjtluzpn1wov/EMPLOYEE Tracking Template Drop Box.xlsm

Let me know if it is working for up to this point.

J4 is missing "Scan In"

Howard

Thanks for your help Howard!
 
Last edited:
Upvote 0
The reference to J4 was meant to point out that the header for SCAN OUT was missing, which also contained the typo of Scan In. Now for some reason I don't see that it is missing and is really no big deal. If missing type Scan Out in J4.

Okay, things to do:

Employee on either list only once and never on both at the same time.
And reselect the entry cell after an entry.


Going forward, does it matter what the sheet names are as long as they represent a readily identified month. Names that represent a true date on the worksheet could be a troublesome thing to work with.

What is the reason all are the 14th except next year when it is the 15th? Does this have anything to do with what dates and time stamps go to what sheet? Is there a cutoff at 14 to go to the next sheet or what?

Howard
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

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