• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Counting intervals/spaces between occurrences and etc

richardking

New Member
Hi to all,

I really need help in writing formulas for the attendance of my employees.

What I want is really simple, hope I can also explain it simply.

Attached is a sample of how I want it to appear, and for sample purposes I only put 3 employee names to make it easier. The first ever working day is set on the 1st of January, weekends included. The numbers in gray (big font) are not part of the actual file, they are just there for reference for each of the charts/tables they are attached to. Kindly check the sample file :)

Chart #1 is the table of attendance for the 3 employees for the month of January. Dates that contain an employee name are the days that an employee has incurred an absence.

Chart #2 is the table for the straight number of days an employee has been present before it has incurred an absence. Take the attendance of John for instance, he has been present for 20 days straight before he had made 1 absence. Then another 7 days straight before he incurred another absence. Thus, you can also say that chart #2 is the number of consecutive days an employee has been present between absences.

Chart #3 is the table for the actual and on-going count that an employee has been present since its last absence. Like for John who has been present for 2 days straight since his last absence, Mark has been present for 1 day since his last absence, and Nancy has been present for 4 days straight since her last absence. These numbers are going to continue its count come February, then March, and so on. Thus, on February 1 those numbers will become 3, 2, and 5, assuming they are all present on that day. The only time that these numbers will reset is when an employee has incurred an absence.

Chart #4 is simply a table that tells who has the most absences from work within the shortest interval, which in this case is Nancy and Mark who are both on the top box (red). Also, having many absences does not mean an employee will be put on the top box, especially on the long run. But rather the employee who has many absences within short intervals, like having incurred an absence or absences once or more every 10 days.

Im not sure how its going to be done, but most likely the formulas are going to be on the cells that contains numbers in bold and purple font.

I know its strange, but this is what I need and it is important for me to get those formulas. So I really need your help guys and I will truly appreciate it :D
 

Attachments

Hi,

See the file, I had used yellow cells to put the formula. Just test on your real data, and dates that you had put in column A are number 1,2,3 format as date so they were not actual dates, so I had converted them to date of Jan/2015.

Regards,
 

Attachments

Thank you guys for your immediate reply. There are just a few problems with your formulas.

1. With Chart #2, the resulting amount becomes incorrect if an employee has made 2 or more straight absences. And, you guys somehow limited the number of instances that an employee can incur an absence by the number of columns you made. Since there are only 4 columns and if an employee has incurred 5 absences, the data shown would now be incorrect.

2. With Chart #3, it is somehow limited to January alone, its suppose to continue its count until February, March, and so on.

Im thinking if there is a necessity to make the charts into sheets instead, then so be it if it makes it better and easier.

Again thank you all for your help. I truly appreciate it :D
 
Thank you guys for your immediate reply. There are just a few problems with your formulas.

1. With Chart #2, the resulting amount becomes incorrect if an employee has made 2 or more straight absences. And, you guys somehow limited the number of instances that an employee can incur an absence by the number of columns you made. Since there are only 4 columns and if an employee has incurred 5 absences, the data shown would now be incorrect.

2. With Chart #3, it is somehow limited to January alone, its suppose to continue its count until February, March, and so on.

Im thinking if there is a necessity to make the charts into sheets instead, then so be it if it makes it better and easier.

Again thank you all for your help. I truly appreciate it :D


For your point number 1: I did not understood what do you mean by 2 or more straight absence. If you drag the columns right you can have 5 , 6 or more numbers.

For no. 2 i check it is taking feb also. You need to adjust the range in the formula.

Regards,
 
For your point number 1: I did not understood what do you mean by 2 or more straight absence. If you drag the columns right you can have 5 , 6 or more numbers.

For no. 2 i check it is taking feb also. You need to adjust the range in the formula.

Regards,

Hi,

Point number 1 is like when an employee makes 2 straight absences or more. Its showing the wrong info on the table.

By the way, I decided to make the tables into sheets instead. Is there a way to hide empty cells and only show the cells that contain data on it, and they would somehow clump into each other. I would be using it on the attendance chart, which would now become the attendance sheet, so that the dates that are not marked with the employee's names will not be shown.

The new file is also attached, formulas excluded.

Thanks for your reply
 

Attachments

Last edited:
Back
Top