• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • SALE 20% Off All Courses
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Attendance Automation.|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Attendance Automation.|General Excel Questions & Answers|Excel Forum|My Online Training Hub
                    BLACK FRIDAY SALE 20% OFF ALL COURSES
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Attendance Automation.
sp_PrintTopic sp_TopicIcon
Attendance Automation.
Avatar
Mehdi Raza
Member
Members
Level 0
Forum Posts: 7
Member Since:
January 20, 2019
sp_UserOfflineSmall Offline
1
May 25, 2021 - 2:10 pm
sp_Permalink sp_Print

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.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4647
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
May 26, 2021 - 1:19 pm
sp_Permalink sp_Print

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

Avatar
Mehdi Raza
Member
Members
Level 0
Forum Posts: 7
Member Since:
January 20, 2019
sp_UserOfflineSmall Offline
3
May 28, 2021 - 3:33 am
sp_Permalink sp_Print

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

Avatar
Mehdi Raza
Member
Members
Level 0
Forum Posts: 7
Member Since:
January 20, 2019
sp_UserOfflineSmall Offline
4
March 24, 2022 - 3:59 am
sp_Permalink sp_Print

Dear Excel Champions,

I am still stuck to this file.

Please help in solving my problem.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 886
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
5
March 24, 2022 - 8:35 am
sp_Permalink sp_Print

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

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 219
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
6
March 24, 2022 - 8:50 am
sp_Permalink sp_Print

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!

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
7
March 24, 2022 - 11:45 pm
sp_Permalink sp_Print

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

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Alan Sidman, Sheryl Gill, Todd Heckman
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Catalin Bombea: 1864
SunnyKow: 1432
Anders Sehlstedt: 886
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 241
Hans Hallebeek: 227
Jessica Stewart: 219
A.Maurizio: 213
Newest Members:
Kelvin H
Anya Ledwith
Mark Melvin
Stuart McInnes
Naji Moukhachen
Robert Mason
Debora Cohen
Kris Whitaker
Rajesh Jawajala
Todd Heckman
Forum Stats:
Groups: 3
Forums: 24
Topics: 6641
Posts: 29140

 

Member Stats:
Guest Posters: 49
Members: 33096
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.