+ Reply to Thread
Results 1 to 21 of 21

attendance log

  1. #1
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    attendance log

    Question:

    I am trying to make an attendance log.

    I need it to have a continuous watch over a 365 day period, where if more than 7 sick days were taken by any employee over a 365 day period, a pop up or some kind of message notifies me.

    Any and all help would be greatly appreciated.

    i am trying to figure it out but kind figure out the logic.

    Please if you need more information dont hesitate to ask,

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: attendance log

    Hi excellionaire and welcome to the forum.

    See the attached with how I'd do this problem.
    It uses a list of employees to fill in their names. The conditonal formatting will allert you if they have more than 365 days sick using Today - 365. See the Formula in the calculation of days sick.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    thank you soo much...

    here is my problem now though...

    with your program:

    I need it to strictly count all sickdays within a 365 year period. once it pasts the 365 days mark then the employee is entitled to more sickdays that fall off.. your program keeps counting even if the sick days are over a year old.


    I really appreciate what u have done though, i will try to make it adabt.

    thank you again.

  4. #4
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: attendance log

    No, Marvin's formulas look only for dates that fall in the last 365 days. So although older sicknesses might show on the spreadsheet, it won't count against the employee.

  5. #5
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    you are right, i am just an idiot.

    TY


    I changed the code from -365 to -366 in all instances, in order to better encapsulate, july 7 10 to july 7 11 for example...it wouldnt count those dates if it were 365.
    Last edited by excellionaire; 07-11-2011 at 01:46 PM.

  6. #6
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    can anyone help me orient that code so its horizontal, ...
    IE like this template. just Q1 i will change so its like marvins code...perpetual, not sorted by quarters.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    okay i've managed to make it a sideways scroller.

    Basicly, i have a company roster along the left column.
    I have the spreadsheet set to sticky after the days late col
    so i can side scroll without forgetting who I am working on.

    here is my new problem. I dont want to be constantly scrolling back and forth to edit/add cells.
    There a way where i can click on the persons name and it will go to the first blank entry for that person?


    again, i appreciate all your help.

    or is there a button that will know which line im on and go to the last sideways entry for that line?

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: attendance log

    Hi excellionaire,

    You could do with an Event Macro to solve this one. Double Click on a name in column A and this code will take you to the last entry in that row.
    Please Login or Register  to view this content.
    See the attached for the samele.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    Marvin you magnificent Bastage!!
    i love you!

    call me an idiot when i dont see things like your attached files...

    PLEASE!
    Last edited by excellionaire; 07-13-2011 at 09:53 AM.

  10. #10
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    marvin love

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: attendance log

    I"m not used to all this emotion

    I find it fun to have problems that might be solved. No politics, religion or ethics.

    I'm glad you liked the possible solution.

  12. #12
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    one last question sir, i hope you dont mind.


    okay:

    so basicly i need dates that are over 365 days to start falling off.
    and then shift the column over...this possible?

    please see the attached file to see my layout.

    i am probably going to remove the total sick days column.
    Attached Files Attached Files
    Last edited by excellionaire; 07-13-2011 at 10:09 AM.

  13. #13
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: attendance log

    Hi,
    I think I'd leave those old dates in as you may need them for something in the future.
    I'm a little worried as the dates from left to right are not in order. What if you have an old date in Column
    I or J and you removed them.

    I think you are looking for some VBA code to look at each date and delete the cell and shift all the others to the left one cell. I don't like deleting stuff as you never know when you may need it in the future.

  14. #14
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    the dates will fall in order, thats what the boss wants...

    but i understand about the vba code thing. Im assured that it will be ordered correctly though if that makes things easier.

  15. #15
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: attendance log

    OK,
    Find the attached that has code to look down column D and delete all the dates older than today -365.

    The code can be improved but I'm just seeing if you can understand it.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    tytyty


    omg boss is killing me

    I cant even think of a way of doing this.

    any way we can somehow include time into the equation. Incase someone takes a half day off work.

  17. #17
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    any help would be appreciated

  18. #18
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    Is there a way i can get the Sick Last 365 not to include anything that i may highlight, and for those highlighted dates to be counted in on Sick Dependent.???


    Thank you again.
    Last edited by excellionaire; 08-24-2011 at 09:06 AM.

  19. #19
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    so ive managed to implement this code:

    Function CountColor(Rng As Range, RngColor As Range) As Integer
    Dim Cll As Range
    Dim Clr As Long
    Clr = RngColor.Range("A1").Interior.Color
    For Each Cll In Rng
    If Cll.Interior.Color = Clr Then
    CountColor = CountColor + 1
    ' Worksheet.Calculate
    End If

    Next Cll

    End Function


    into it, and after doing some research i found out that changing background color of a cell doesn't trigger an event. Only way for updates to be noted is by manualy selecting the cell and clicking out of it to update it.

    So I am now trying to implement the Worksheet_SelectionChange function into this, but im not sure how to do this..

  20. #20
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    okay so i gave up on the highlighting thing...

    Instead i decided to denote Sick Dependants with an ! mark in the end. One problem.

    The Automatic Delete button wont detect dates with ! marks.
    is there any way i can get this to work?

    sorry for all the questions.

  21. #21
    Registered User
    Join Date
    07-08-2011
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: attendance log

    can anyone help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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