January 20, 2019
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.
July 16, 2010
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
VIP
Trusted Members
December 7, 2016
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
Trusted Members
February 13, 2021
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!
VIP
Trusted Members
June 25, 2016
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
1 Guest(s)