+ Reply to Thread
Results 1 to 26 of 26

Bradford Factor

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Newcastle, Englan
    MS-Off Ver
    Excel 2007
    Posts
    2

    Bradford Factor

    Hi

    I have drafted a spreadsheet as used in my old company but have no idea how to add the BF calculations in?? within the sheet I would copy the cell "SICK" and paste it into the day the employee has had off. then in the rows below their name i would change the instances. this would then give me the bradford factor score. attached is the spreadsheet any help would be great
    Attached Files Attached Files

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

    Re: Bradford Factor

    Based on the sample file it seems you're looking for:

    Please Login or Register  to view this content.
    I am no expert on BF but in the posts I've seen previously the implication was always that consecutive days off were treated as a single absence - it's not clear from your set up if you can capture that or not.
    (obviously an ee should not be judged on a single year)

  3. #3
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    The "official" definition of the Bradford Factor is total number of days off x (total incidents of days off)^2

    So any day in work will create a new incident!

    So consecutive days off will count as one incident!

    note that the Bradford Factor doenst take into account valid reasons for days off or disability discrimination!
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Bradford Factor

    And of course it goes without saying it doesn't apply to HR and management!

    For example
    Q "Where is Bob today?",
    A "He's on a course today."
    Q "St Andrews?"
    A "Yes, and Gleneagles tomorrow."

    BF = 0

  5. #5
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    Reminds me of the guy who got fired on a sickie, during the 80's, his mistake he was on the front row at the world snooker championships! Ok, why was his boss watching the snooker unless he caught the highlight show in the evening!!!!!!

  6. #6
    Registered User
    Join Date
    11-03-2010
    Location
    Newcastle, Englan
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Bradford Factor

    Am really sorry for any confusion but the wrong file had been attached, please the correct on attached now, sorry and thanks for the help
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    Firstly can I suggest that you take out the month dividers, its a lot easier to write a formula without the gaps, putting the month to the left of the data and deleting the gaps is a better way to lay out the spreadsheet and more efficient!

  8. #8
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    Assuming you are ok with the layout, formula I added the formulas to the sheet!

    also as a bonus :-

    =B77+1+2*(MOD(B77,7)=6)

    copied down will continue the weekday series automatically (I placed this in cell b78)
    Attached Files Attached Files

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

    Re: Bradford Factor

    FWIW, I would strongly advised against using SUMPRODUCT with ranges of that magnitude.
    Use a limited range and/or if requirements are such that the range referenced must be dynamic use INDEX based DNRs (I would avoid use of OFFSET).

    Given OP is using XL2007 the use of SUMPRODUCT is perhaps not necessary ... a COUNTIFS would suffice and would permit much large range references without performance concern.

  10. #10
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    the file provided was in 2003 format!

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

    Re: Bradford Factor

    @squiggler47, true - I confess I looked at the profile.

    Irrespective of version I hope you're not going to defend SUMPRODUCTs referencing 65k rows

  12. #12
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    Slightly more convoluted but :-


    =SUMPRODUCT((D$14:INDEX(D$14:D$65535,COUNTA($B$14:$B$65535),1)="Sick")*((D$15:INDEX(D$15:D$65535,COUNTA($B$14:$B$65535),1))<>"Sick"))

    or in 2007+

    =COUNTIFS(D14:D5000,"Sick",D15:D5001,"<>Sick")

    both perform at around the same speed

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

    Re: Bradford Factor

    Given the set up you can replace the COUNTA with MATCH(9.99E+307,$B:$B)

    Using the MATCH you would also (technically) adjust the second MATCH result by +1 row to keep the dimensions equal.
    Last edited by DonkeyOte; 11-04-2010 at 08:28 AM. Reason: wrong

  14. #14
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    match is actually slowing the calculation by 10%

  15. #15
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    in Excel 2007

    =COUNTIFS(D$14:INDEX(D$14:D$65535,COUNTA($B$14:$B$65535),1),"Sick",D$15:INDEX(D$15:D$65535,COUNTA($B$14:$B$65535),1),"<>Sick")

    the original formula ran at about 38 seconds for 1000 calculations, against the sumproduct Calc with index and counta at 0.1 seconds, sumproduct index/match 0.11 and the above at 0.08 seconds and 1.47 second for straight count ifs


    Take your pick!!!!

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

    Re: Bradford Factor

    Quote Originally Posted by squiggler47
    match is actually slowing the calculation by 10%
    I can only say that our results differ.

    COUNTA will fire against the used range intersect - as that increases in size so I would expect the binary search driven MATCH to outperform it.

    With 30k dates I show that the COUNTA method is approx 33% quicker than original approach and the MATCH is about 20% quicker than the COUNTA.

    Whether the difference in real terms would be noticeable is entirely different question

  17. #17
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    I would say given the small difference that either would be fine, i think 1000 loops in under a second is a reasonable speed since it allows 20 years tracking of 1000 employees before it gets too slow!!!

  18. #18
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    @Donkey, If the data is unsorted match would either have to index the data to perform a binary search, since it only works with ordered data!

    Whereas the last row and column in a worksheet is stored, so I would assume that count limits its self to the last row in counting sort of like A1:min(A1000,LastRow)

    Since Match would have to compare each value in an unsorted list and count would only have to verify it had data, I would assume count had advantages with an unsorted list?

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

    Re: Bradford Factor

    Quote Originally Posted by squiggler47 View Post
    @Donkey, If the data is unsorted match would either have to index the data to perform a binary search, since it only works with ordered data
    MATCH when used in Binary Search form assumes data is sorted irrespective of reality.

    As to whether MATCH "works" or not rather depends on what you're trying to do.

    Here we are interested only in determining row number of last numeric value nothing more - the ordering of the data itself is of no consequence.

    Given the facts that:

    a) MATCH in this context will return row number of last value <= criteria

    b) our "big number" criteria exceeds all values in the precedent range

    c) Excel assumes the list is in order
    It follows that MATCH will return the row number of the last numeric in the range given it assumes it to be the biggest and it is <= criteria.

  20. #20
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Bradford Factor

    @donkey

    Final note, in 2010 match is faster, in 2003 its considerably slower, on less than 10k items in a column! Perhaps thats where our discreprency has come in!

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

    Re: Bradford Factor

    Quote Originally Posted by squiggler47 View Post
    @donkey

    Final note, in 2010 match is faster, in 2003 its considerably slower, on less than 10k items in a column! Perhaps thats where our discreprency has come in!
    I concur - I just tested on 2002 and Binary Search MATCH is (significantly) slower % wise when compared to COUNTA ... that's a surprise to me.
    Might be worthy of further investigation....

  22. #22
    Registered User
    Join Date
    06-24-2019
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    6

    Lightbulb Re: Bradford Factor

    Hi

    I have a spreadsheet as used in my company but have no idea how to add pivot with the BF calculations in??
    Initial pivot , data and holidays with attached file. Could you please help me because you are experts ?

    Grzegmi
    Attached Files Attached Files

  23. #23
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Bradford Factor

    @grzegmi 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 start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  24. #24
    Registered User
    Join Date
    06-24-2019
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    6

    Re: Bradford Factor

    Welcome to the forum

    Thank you for your advice
    I will start a new thread

    Thank you
    Grzegmi

  25. #25
    Registered User
    Join Date
    06-24-2019
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    6

    Re: Bradford Factor

    Hi
    I`ve got message:
    "You are not allowed to post any kinds of links, images or videos until you post a few times".
    br
    Grzegmi

  26. #26
    Registered User
    Join Date
    06-24-2019
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    6

    Re: Bradford Factor

    now works (without symbol)

+ 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