+ Reply to Thread
Results 1 to 10 of 10

Calculating time

  1. #1
    Registered User
    Join Date
    06-17-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2003
    Posts
    12

    Calculating time

    Hi guys, I'm brand new to this site and i joined because i need help from the experts.

    I just started a new job and i've been tasked with creating a new way of viewing the Shift rota so that it becomes obvious where our unmanned areas are.

    The problem i'm having is the night shifts effectively start on one day but finish on the next. I only need to count this as one shift not two.If you like i can email the worksheet to any helpers to illustrate my problem.

    Any comments or feedback would be brilliant.

    Cheers

    Noodles1984
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Calculating time

    Noodles1984;

    I looked at your worksheet, and I couldn't find any way to accomplish what you wanted without using a UDF().

    If you don't want to use a UDF(), then I would suggest recording the start and end time with dates.
    B2 : 6/18/2010 9:00 PM
    C2 : 6/19/2010 5:00 AM
    If you still waned a visual display of hours worked, it wouldn't be as hard as what you're currently asking for.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  3. #3
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166

    Re: Calculating time

    Hi

    Over the years i've come up with many ways of working a rota for shifts that go into the next day.

    For your overview sheet i would use a 36 hour clock for the working day, that way it wont run into the next week day. (i.e) if you start at 21:00 and finish 05:00 the next day then the new start and finish time would be 21:00 - 29:00

    Please find Your sheet attached

    See if this gets you started

    Dave
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-17-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Calculating time

    Quote Originally Posted by foxguy View Post
    Noodles1984;

    I looked at your worksheet, and I couldn't find any way to accomplish what you wanted without using a UDF().

    If you don't want to use a UDF(), then I would suggest recording the start and end time with dates.
    B2 : 6/18/2010 9:00 PM
    C2 : 6/19/2010 5:00 AM
    If you still waned a visual display of hours worked, it wouldn't be as hard as what you're currently asking for.
    FOXGUY,

    This answer seems to me to be the best answer for keeping in line with what i wanna achieve,

    Can you help me going forward, where do i go from here??

    PS: what is a UDF()

    Still an excel virgin

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Calculating time

    Hi,
    when searching info on acronyms or others, Google is your friend !

  6. #6
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Calculating time

    Hi noodles1984;

    PS: what is a UDF()
    User Defined Function.
    If you enter "=Date(2010,1,1)" in a cell, it will display "1/1/2010" (or however you have the cell formatted. "Date()" is a built in function. You can create your own functions, and use them just like Excel's built in functions.

    Can you help me going forward, where do i go from here??
    If you want to keep your current workbook the same as it now, I believe that you would have to create a UDF for you "Shift" column. I don't think it would be hard to write, but I personally don't think that is your best long term solution. As time goes by, you will want to improve the workbook to handle more & more situations, and you will be stuck with a format that can be hard to work with.

    I personally would recommend redesigning your workbook.
    I would create 1 sheet that asks for starting and ending date & time. Then a 2nd sheet that showed your visual display of shifts. This would be harder (and take longer), but I believe that it's a better long term solution.

  7. #7
    Registered User
    Join Date
    06-17-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Calculating time

    Foxguy, your comments and feedback are much appreciated and i'm ashamed to admit i but your definately right, that would be the answer going forward.

    Oh well, back to the drawing board. is it ok if i PM you to ask for help on future projects??

  8. #8
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Calculating time

    Hi noodles1984;
    is it ok if i PM you to ask for help on future projects??
    It's fine to PM me to let me know that you have started another thread and the title to it. Forum Rules ask you to not ask questions in PMs. There are exceptions, so feel free to send me a PM about anything. If I think it should be in a thread where others can see it, I'll let you know. I generally answer the threads that don't get much attention, so if you get a lot of replies, I may not open it, so be sure and PM me with the title.

    I keep the current thread in my subscriptions for at least a month after the last reply, so if you add something to this thread in the next month I'll see it.

  9. #9
    Registered User
    Join Date
    06-17-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Calculating time

    Quote Originally Posted by foxguy View Post
    Hi noodles1984;

    It's fine to PM me to let me know that you have started another thread and the title to it. Forum Rules ask you to not ask questions in PMs. There are exceptions, so feel free to send me a PM about anything. If I think it should be in a thread where others can see it, I'll let you know. I generally answer the threads that don't get much attention, so if you get a lot of replies, I may not open it, so be sure and PM me with the title.

    I keep the current thread in my subscriptions for at least a month after the last reply, so if you add something to this thread in the next month I'll see it.
    Thanks Foxguy,

    Like i said mate i'm a bit of an excel virgin and i'm being presented with more and more projects for a massive retail distribution firm and i'm running out of answers to some of them.

    All help appreciated.

  10. #10
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Calculating time

    Hi noodles1984;
    All help appreciated.
    Are you asking for some help now? Or just saying thanks?

+ 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