+ Reply to Thread
Results 1 to 4 of 4

hours to break formula

  1. #1
    Registered User
    Join Date
    01-04-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    3

    hours to break formula

    hi everyone, was wondering if you could help me

    at the moment on my works schedules we only have the hours they are scheduled to work, what i was hoping to do was introduce a Break colunm to work out there breaks, but i was hoping that there would be a single forumla that would work out there break?

    for example if someone works 4 hours they wont recieve a break, if they work over 4 hours but up to 7 they get 20 mins break and if they work 8 hours they get 30min break.

    i hope this makes sense???

    thanks in advance


    will

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: hours to break forumula?

    Like this?

    =IF(F1<=4,0,IF(F1<7,20,30))

    Where F1 is work hours and result is in minutes

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: hours to break forumula?

    Perhaps?

    =Lookup(A1,{0,5,8},{0,0.33333,0.5})

    where A1 contains hours worked (assuming whole hours)... result is in fractions of an hour.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    01-04-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: hours to break forumula?

    thanks thats perfect!!!

+ 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