Forum

Notifications
Clear all

Attendance Automation.

7 Posts
5 Users
0 Reactions
137 Views
(@mehdi-raza199)
Posts: 7
Active Member
Topic starter
 

Hello Team,

I need to automate the excel attendance sheet and want to get the status column via if formula. Kindly guide me that how it should work to get the below mentioned result.

Requirement: I want to have a formula in status column which should work as follows.

CLOCK IN

If "Clock In" is between 9.30 AM to 9.45 AM, it is marked as late.

If "Clock In" is between 9.46 AM to 10.00 AM, it is marked as 25%

If "Clock In" is between 10.01 AM to 12.00 AM, it is marked as 50%

If "Clock In" is between 12.01 AM to 02.30 AM, it is marked as 75%

Every third late will be marked as absent

If " Clock In" is empty the it should be marked as absent

CLOCK OUT

If "Clock Out" empty, marked as absent.

If "Clock Out is before 6.30 PM then highlight it as Red.

 
Posted : 26/05/2021 12:10 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Mehdi,

I would use a VLOOKUP formula on a sorted list to return the status. If you get stuck, please come back to this thread and upload your sample Excel file so we can see how your data is laid out and your formula attempt.

Mynda

 
Posted : 26/05/2021 11:19 pm
(@mehdi-raza199)
Posts: 7
Active Member
Topic starter
 

Hi Mynda,

I tried but not able to understand the logic. I am attaching my excel file. You are requested to please review the same and suggest solution. Waiting for your reply.

Mehdi

 
Posted : 28/05/2021 1:33 pm
(@mehdi-raza199)
Posts: 7
Active Member
Topic starter
 

Dear Excel Champions,

I am still stuck to this file.

Please help in solving my problem.

 
Posted : 24/03/2022 1:59 pm
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello,

As Mynda mentioned almost a year ago, create a table for your criterias.

Example table below is called TimeCriterias

Start time Text
09:00 Present
09:30 Late
09:46 25%
10:01 50%
12:01 75%

Then you can use for example the VLOOKUP function to get the text as per time span.
=VLOOKUP(C7,TimeCriterias;2;TRUE)

To handle the remaining parts you would need nested IF formulas, whereas the "Every third late will be marked as absent" will be the most trickiest part to solve. It can be easier by using helper columns. Do try and see how far you get, if you get stuck we can help you sort it out.

Br,
Anders

 
Posted : 24/03/2022 6:35 pm
(@jstewart)
Posts: 216
Estimable Member
 

I'm not going to lie; it's not a perfect, exhaustive list of absolutely everything you want (you will definitely need to tweak the formulas a bit) but here's a little something to get you started. I didn't take into account Kashmir Day, you may want to use Workday.Intl vs Weekday (which is what I used for ease of example). Formulas are fun, they really let you get your creative juices flowing. Let the creativity flow through you, Mehdi! 🙂

So another thing I didn't do, I did hardcode the 3 tardies to an absence, I'd need to google to think of a solution for that and I was feeling a bit lazy today. So you will need to google or have someone else come up with a way to make that dynamic to every 3 tardies = absence. I hope I'm making sense and not rambling. Happy Excelling!

 
Posted : 24/03/2022 6:50 pm
(@sunnykow)
Posts: 1417
Noble Member
 

My suggestion for the "Absent" is :

(1) Let the status be "Late" even on the third "Late"

(2) In cell C50 (under the deduction calculation) count the number of cells containing "Late" and values >0  (i.e. 25%, 50%, 75%).

(3) Divide (2) above by 3 and get the INTEGER part. i.e. INT((Late+value cells)/3)

This will give you the number of "Absent".

Hope this helps.

Sunny

 
Posted : 25/03/2022 9:45 am
Share: