+ Reply to Thread
Results 1 to 8 of 8

Count number of consecutive days and instances

  1. #1
    Forum Contributor
    Join Date
    11-06-2007
    Posts
    123

    Count number of consecutive days and instances

    Many Thanks newdoverman, very much appreciated.
    Attached Files Attached Files
    Last edited by Cortlyn; 02-06-2015 at 06:19 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count number of consecutive days and instances

    Simply change all instances of 20 in all ranges for both formulas to 386 which is what is on your sheet, re-enter formulas with Ctrl+Shift+Enter key combination and pull formulas down the very end.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count number of consecutive days and instances

    I have shown a couple of ways of creating the statistics that you want. One is a Pivot Table and the other is a summary chart where you enter the start and end dates for the period that you are interested in
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Contributor
    Join Date
    11-06-2007
    Posts
    123

    Re: Count number of consecutive days and instances

    Hi

    Thank you AlKey
    When I change the end row number the formula stops working and the values go to "0". I tried by changing the 20's to 500, copying it down, highlighting it all and pressing Ctrl-Shift-Enter, maybe it my method that is wrong?

    Thank you newdoverman
    I am trying to count the days off in the period and the instances off in the period. Sick.PNG

    For e.g. Elena is off on 01/01/2015 to 01/01/2015 = 1 day off and 1 instance.
    Elend if off on 28/01/2015 to 28/01/2015, 29/01/2015 to 29/01/2015, 30/01/2015 to 30/01/2015, these are being counted as 3 separate instances instead of 1 instance (of 3 consecutive days.

    I have attached a previous example "How-to-count...." which I am treying to adapt to my report.


    Many thanks

    C

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count number of consecutive days and instances

    Why enter every single day that someone is off? This makes no sense to me whatsoever having kept attendance records for a large office for many years. Have a start date and an end date. Use the NETWORKDAYS function and that will give you the number of days. That is 1 entry regardless of the number of days. To get the number of instances of leave, just use COUNTIF for each employee and the result is the number of instances.

  6. #6
    Forum Contributor
    Join Date
    11-06-2007
    Posts
    123

    Re: Count number of consecutive days and instances

    Hi

    Thanks newdoverman.
    The problem I have is that the hours worked / absences etc. are recorded on a Timesheet System and loaded into our antiquated HR system showing a day at a time as they have been entered - hence resorting to Excel to do the calculations

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count number of consecutive days and instances

    My sympathies to you. Even before computers we didn't have to do that....From - To ....days on a personal timesheet in HR. The line number gave the number of occurrences. A column kept running totals and that was it.

    Here is your workbook with AlKey's solution implemented. I think you will see what he referred to.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    11-06-2007
    Posts
    123

    Re: Count number of consecutive days and instances

    Thank You Very Much!!!

+ 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. [SOLVED] Count Consecutive Days Based on Unique Number
    By Kimston in forum Excel General
    Replies: 5
    Last Post: 11-23-2014, 04:46 PM
  2. [SOLVED] How to count 10 consecutive week days
    By rjassal82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-16-2013, 05:40 AM
  3. Replies: 2
    Last Post: 07-25-2013, 01:01 PM
  4. Replies: 2
    Last Post: 11-05-2011, 07:29 AM
  5. Replies: 5
    Last Post: 09-01-2011, 03:46 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