+ Reply to Thread
Results 1 to 5 of 5

Counting Consecutive Dates As A Single Occasion

  1. #1
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664

    Counting Consecutive Dates As A Single Occasion

    Hi all,

    I'm putting together a document for the HR department regarding sick leave in the office and they want me to include something called the Bradford Factor which is calculated thus: Occasions x Occasions x Days.

    I'm using data downloaded from a database which shows each date each person was away and for what reason. The problem I have in calculating the Bradford Factor is that I can't differentiate between the different occasions someone is away.

    What I'm trying to do is to get Excel to look at the dates and, if they are consecutive (Fri - Mon inclusive is also counted as consecutive) I need Excel to tell me that this is one occasion. It then needs to count each seperate occasion.

    I've attached an example with each different occasion colour coded. In the example there a five occasions. Thus the Bradford Factor would be 187.5 (5*5*7.5).

    TIA,

    SamuelT
    Attached Files Attached Files
    Last edited by SamuelT; 01-08-2010 at 07:56 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting Consecutive Dates As A Single Occasion

    You could consider using NETWORKDAYs to establish days between absences, eg:

    Please Login or Register  to view this content.
    you can then use that column for your final calc, ie:

    Please Login or Register  to view this content.
    If you have multiple people to differentiate you can of course use SUMIF etc...or even use a Pivot Table with Calculated Field to generate Bradford Factor ie =Absence^2*'Total Days Absent'

    EDIT:
    for sake of clarity I have uploaded an attached proof of concept

    NOTES:
    -- I've assumed XL2007 in the above - if not you would of course need to activate Analysis ToolPak (Networkdays) to use the above

    -- I've assumed data is sorted by Date, grouped by Individual
    Attached Files Attached Files
    Last edited by DonkeyOte; 01-08-2010 at 07:51 AM. Reason: typo in notes section

  3. #3
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664

    Re: Counting Consecutive Dates As A Single Occasion

    That's perfect. Thanks so much DonkeyOte!

  4. #4
    Registered User
    Join Date
    11-09-2008
    Location
    South Africa
    Posts
    14

    Re: Counting Consecutive Dates As A Single Occasion

    Hi SamuelT!

    I don't know if you are still at this address but here's trying.

    Could you please forward me your spreadsheet and maybe just an explanation on how you use/d it? I have been tasked to look at absenteeism and using the Bradford Index although we are looking at a period of 26 weeks in which the absenteeism takes place and it seems what you did will help me a great deal.

    Thanking you in advance,
    Rennier
    South Africa

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting Consecutive Dates As A Single Occasion

    Rennier, if you wish to contact a Member directly with questions of this nature please do so via PM - esp. where threads are old.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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