+ Reply to Thread
Results 1 to 22 of 22

Need Help with Attendance Formula in an Excel Template

  1. #1
    Registered User
    Join Date
    01-02-2022
    Location
    Washington, MO
    MS-Off Ver
    Office 365 Apps Enterprise - Version 2111
    Posts
    7

    Cool Need Help with Attendance Formula in an Excel Template

    Good Morning and Happy New Year.

    Getting ready for the new year I found an attendance record that I really like. The only issue is I cannot change the formula to get it correct in the template for this to record us as a 365 day business. We are a Drive Thru coffee business.

    Help please.

    This is the formula on January 1 which is a Saturday so it is blocked out:
    =IFERROR(IF(TEXT(DATE(Calendar_Year,ROW($A1),1),"ddd")=LEFT(I$5,3),DATE(Calendar_Year,ROW($A1),1),IF(H6>=1,H6+1,"")),"")

    This is the formula on January 3, which is a Monday so it is able to be chosen:
    =IFERROR(IF(J6>=1,J6+1,""),"")

    I did attached the template so you can see it.

    Thank you all in advance.

    Marianne
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,214

    Re: Need Help with Attendance Formula in an Excel Template

    Administrative Note:

    Welcome to the forum.

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-02-2022
    Location
    Washington, MO
    MS-Off Ver
    Office 365 Apps Enterprise - Version 2111
    Posts
    7

    Re: Need Help with Attendance Formula in an Excel Template

    Thank you! I have just updated my profile with the following information - Office 365 App Enterprise version 2111 of Excel.

    Looking forward to getting a solution!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Need Help with Attendance Formula in an Excel Template

    The dates are "blocked" by Conditional formatting

    =OR(LEFT(C$5,1)="S", COUNTIF(lstHolidays, C6)>0)

    which "blocks" Saturdays/Sundays

    so you could change to

    =COUNTIF(lstHolidays, C6)>0

    which "blocks" holidays so Jan 1st would still be blocked unless removed from "Company Holidays"

    You might also change "working Days" formula

    =NETWORKDAYS(DATE(Calendar_Year,1,1),EDATE(DATE(Calendar_Year,1,1),12))

    to

    =NETWORKDAYS.INTL(DATE(Calendar_Year,1,1),EDATE(DATE(Calendar_Year,1,1)-1,12),"0000000")
    Last edited by JohnTopley; 01-02-2022 at 12:47 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    01-02-2022
    Location
    Washington, MO
    MS-Off Ver
    Office 365 Apps Enterprise - Version 2111
    Posts
    7

    Re: Need Help with Attendance Formula in an Excel Template

    Thank you John -

    The Workings days formula worked like a charm.

    My issue now is with the "conditions" I have tried to change them, but again it will not accept the formula. Or if I change the condition it still does not recognize Saturday or Sunday.

    Is there any further direction you can give on the conditions?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,214

    Re: Need Help with Attendance Formula in an Excel Template

    Please provide an updated file showing:

    1. what you have tried, and
    2. a mock-up of the results you are expecting.

  7. #7
    Registered User
    Join Date
    01-02-2022
    Location
    Washington, MO
    MS-Off Ver
    Office 365 Apps Enterprise - Version 2111
    Posts
    7

    Re: Need Help with Attendance Formula in an Excel Template

    I have tried changing the conditional formula. That does not seem to work for me.

    All I need is to be shown how to change the "conditional" formula to include all days in the month. We are a 7 days a week business and I need to be able to choose a Saturday and/or Sunday as a sick day/vacation day etc.

    I will attach a screen show of what I am looking at. I can also re-attach with the correct changes to the working days...

    Attachment 761674

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Need Help with Attendance Formula in an Excel Template

    CF changed
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-02-2022
    Location
    Washington, MO
    MS-Off Ver
    Office 365 Apps Enterprise - Version 2111
    Posts
    7

    Re: Need Help with Attendance Formula in an Excel Template

    I cannot thank you all enough!! So grateful.

    A very happy, healthy, and prosperous to you all.

  10. #10
    Registered User
    Join Date
    01-02-2022
    Location
    Washington, MO
    MS-Off Ver
    Office 365 Apps Enterprise - Version 2111
    Posts
    7

    Re: Need Help with Attendance Formula in an Excel Template

    Good Morning All -

    I had an employee call in sick today. I went in the spreadsheet and added all the employees. I chose her name and added her out sick today. When I went to her name on the main page, it seems that it did not carry over and it does not show sick and it is not highlighted in blue? I know it worked when Ali did it and sent it back to me.. But now it is not.

    I greatly appreciate any help. I am reattaching the updated sheet here.
    Attached Files Attached Files

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,214

    Re: Need Help with Attendance Formula in an Excel Template

    I know it worked when Ali did it and sent it back to me.. But now it is not.
    I think you mean John ...

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,214

    Re: Need Help with Attendance Formula in an Excel Template

    You put Sick Leave in the Employeee Leave Tracker instead of just Sick - Sick Leave is not one of the allowed absence entries.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    01-02-2022
    Location
    Washington, MO
    MS-Off Ver
    Office 365 Apps Enterprise - Version 2111
    Posts
    7

    Re: Need Help with Attendance Formula in an Excel Template

    Well I am an idiot. Again, thank you Ali. You are awesome.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,214

    Re: Need Help with Attendance Formula in an Excel Template

    No worries - we've all been there!

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  15. #15
    Registered User
    Join Date
    01-05-2022
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    3

    Re: Need Help with Attendance Formula in an Excel Template

    Hi guys. I'm trying to change the weekend days to Friday and Saturday. Your kind help will be appreciate it.
    MicrosoftTeams-image (7).pngMicrosoftTeams-image (7).png

    =IFERROR(IF(TEXT(DATE(Calendar_Year,ROW($A1),1),"ddd")=LEFT(C$5,3),DATE(Calendar_Year,ROW($A1),1),""),"")

    =IFERROR(IF(TEXT(DATE(Calendar_Year,ROW($A1),1),"ddd")=LEFT(D$5,3),DATE(Calendar_Year,ROW($A1),1),IF(C6>=1,C6+1,"")),"")

    =IFERROR(IF(I6>=1,I6+1,""),"")

    =NETWORKDAYS(DATE(Calendar_Year,1,1),EDATE(DATE(Calendar_Year,1,1),12)-1)

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Need Help with Attendance Formula in an Excel Template

    Select range C6:AR17

    in last CF

    =OR(WEEKDAY(C6,1)>=6,, COUNTIF(lstHolidays, C6)>0)

    set FONT to White
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    01-05-2022
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    3

    Re: Need Help with Attendance Formula in an Excel Template

    Hi John! Thanks for your quick response.

    Forgive my ignorance. But now I see the working days came up to 365 days.
    Can you please attach a screenshot to where I'm supposed to change the following? I'm not able to find it anywhere.
    Select range C6:AR17

    in last CF

    =OR(WEEKDAY(C6,1)>=6,, COUNTIF(lstHolidays, C6)>0)

    set FONT to White

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Need Help with Attendance Formula in an Excel Template

    Select C6:AR37 on "Calendar View"

    Click on "Conditional Formatting">>>"Manage Rules" >>Scroll down to last rules>>Click on rule >> "Edit Rule" >> Paste formula ..FORMAT ..FONT>>Colour White

  19. #19
    Registered User
    Join Date
    01-05-2022
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    3

    Re: Need Help with Attendance Formula in an Excel Template

    JohnTopley, sorry for the late response. It worked! Thanks for your kind support.

  20. #20
    Registered User
    Join Date
    01-27-2022
    Location
    Reno, Nevada
    MS-Off Ver
    2108
    Posts
    1

    Red face Re: Need Help with Attendance Formula in an Excel Template

    Hello,

    I have been able to modify the template significantly to meet what I need.
    However, my company uses Fiscal year (May-April).
    Is it possible to adjust formula to pull into the calendar view tab from 2 diff years? (May 2021 - Dec 2021, and Jan 2022 - April 2022)

    Thank you so much! I've been stuck on this and appreciate any help!
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    11-10-2023
    Location
    United Arab Emirates
    MS-Off Ver
    MS Office 2021
    Posts
    10

    Re: Need Help with Attendance Formula in an Excel Template

    Hi,

    Anyone please help me update this excel to change my weekly off to Sunday alone?

    Thanks,
    Ramiz
    Attached Files Attached Files

  22. #22
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Need Help with Attendance Formula in an Excel Template

    Quote Originally Posted by Ramiz Basheer View Post
    Hi,

    Anyone please help me update this excel to change my weekly off to Sunday alone?

    Thanks,
    Ramiz
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel formula for a 2010 template - Employee Attendance Tracker
    By mkcatt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-22-2018, 10:19 AM
  2. [SOLVED] Formula to minutes late in Attendance Tracking Template
    By dacksdh in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-26-2018, 10:11 AM
  3. Excel 2007 : Excel 7 - Attendance Template
    By Mark1970 in forum Excel General
    Replies: 2
    Last Post: 01-06-2012, 06:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1