+ Reply to Thread
Results 1 to 7 of 7

Negative Working Hours

  1. #1
    Bob Phillips
    Guest

    Re: Negative Working Hours

    I think you have your A and B back to front

    =(NETWORKDAYS(A4,B4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Mohammed Zenuwah" <[email protected]> wrote in
    message news:[email protected]...
    > Hi Folks,
    >
    > I'm hoping yous can help me, a few weeks ago I put up a couple of posts on
    > calculating working hours with the use of the networkdays function. This
    > works great, however I seem to be getting negative values causes by
    > calculating time over the weekend(outwith working hours). Please example
    > below.
    >
    > A B
    > 1 01/07/2005 11:50 01/07/2005 13:49
    > 2 06/07/2005 16:03 06/07/2005 17:00
    > 3 08/07/2005 13:43 11/07/2005 09:36
    >
    > Using the following expression I get these values.
    >
    > =(NETWORKDAYS(B2,A2)-1)*8.5+(MOD(B2,1)-MOD(A2,1))*24 = 1.99
    > =(NETWORKDAYS(B3,A3)-1)*8.5+(MOD(B3,1)-MOD(A3,1))*24 = 0.95
    > =(NETWORKDAYS(B4,A4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24 = -29.61
    >
    > Any ideas on how I can accurately give the number of hours for cells A3

    and
    > B3?
    >
    > Thanks in advance,
    >
    > Mo..




  2. #2
    Mohammed Zenuwah
    Guest

    Re: Negative Working Hours

    Hi Bob,

    Thank your a legend, that worked a treat..

    Best regards,

    Mo..

    "Bob Phillips" wrote:

    > I think you have your A and B back to front
    >
    > =(NETWORKDAYS(A4,B4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Mohammed Zenuwah" <[email protected]> wrote in
    > message news:[email protected]...
    > > Hi Folks,
    > >
    > > I'm hoping yous can help me, a few weeks ago I put up a couple of posts on
    > > calculating working hours with the use of the networkdays function. This
    > > works great, however I seem to be getting negative values causes by
    > > calculating time over the weekend(outwith working hours). Please example
    > > below.
    > >
    > > A B
    > > 1 01/07/2005 11:50 01/07/2005 13:49
    > > 2 06/07/2005 16:03 06/07/2005 17:00
    > > 3 08/07/2005 13:43 11/07/2005 09:36
    > >
    > > Using the following expression I get these values.
    > >
    > > =(NETWORKDAYS(B2,A2)-1)*8.5+(MOD(B2,1)-MOD(A2,1))*24 = 1.99
    > > =(NETWORKDAYS(B3,A3)-1)*8.5+(MOD(B3,1)-MOD(A3,1))*24 = 0.95
    > > =(NETWORKDAYS(B4,A4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24 = -29.61
    > >
    > > Any ideas on how I can accurately give the number of hours for cells A3

    > and
    > > B3?
    > >
    > > Thanks in advance,
    > >
    > > Mo..

    >
    >
    >


  3. #3
    Bob Phillips
    Guest

    Re: Negative Working Hours

    I think you have your A and B back to front

    =(NETWORKDAYS(A4,B4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Mohammed Zenuwah" <[email protected]> wrote in
    message news:[email protected]...
    > Hi Folks,
    >
    > I'm hoping yous can help me, a few weeks ago I put up a couple of posts on
    > calculating working hours with the use of the networkdays function. This
    > works great, however I seem to be getting negative values causes by
    > calculating time over the weekend(outwith working hours). Please example
    > below.
    >
    > A B
    > 1 01/07/2005 11:50 01/07/2005 13:49
    > 2 06/07/2005 16:03 06/07/2005 17:00
    > 3 08/07/2005 13:43 11/07/2005 09:36
    >
    > Using the following expression I get these values.
    >
    > =(NETWORKDAYS(B2,A2)-1)*8.5+(MOD(B2,1)-MOD(A2,1))*24 = 1.99
    > =(NETWORKDAYS(B3,A3)-1)*8.5+(MOD(B3,1)-MOD(A3,1))*24 = 0.95
    > =(NETWORKDAYS(B4,A4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24 = -29.61
    >
    > Any ideas on how I can accurately give the number of hours for cells A3

    and
    > B3?
    >
    > Thanks in advance,
    >
    > Mo..




  4. #4
    Mohammed Zenuwah
    Guest

    Re: Negative Working Hours

    Hi Bob,

    Thank your a legend, that worked a treat..

    Best regards,

    Mo..

    "Bob Phillips" wrote:

    > I think you have your A and B back to front
    >
    > =(NETWORKDAYS(A4,B4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Mohammed Zenuwah" <[email protected]> wrote in
    > message news:[email protected]...
    > > Hi Folks,
    > >
    > > I'm hoping yous can help me, a few weeks ago I put up a couple of posts on
    > > calculating working hours with the use of the networkdays function. This
    > > works great, however I seem to be getting negative values causes by
    > > calculating time over the weekend(outwith working hours). Please example
    > > below.
    > >
    > > A B
    > > 1 01/07/2005 11:50 01/07/2005 13:49
    > > 2 06/07/2005 16:03 06/07/2005 17:00
    > > 3 08/07/2005 13:43 11/07/2005 09:36
    > >
    > > Using the following expression I get these values.
    > >
    > > =(NETWORKDAYS(B2,A2)-1)*8.5+(MOD(B2,1)-MOD(A2,1))*24 = 1.99
    > > =(NETWORKDAYS(B3,A3)-1)*8.5+(MOD(B3,1)-MOD(A3,1))*24 = 0.95
    > > =(NETWORKDAYS(B4,A4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24 = -29.61
    > >
    > > Any ideas on how I can accurately give the number of hours for cells A3

    > and
    > > B3?
    > >
    > > Thanks in advance,
    > >
    > > Mo..

    >
    >
    >


  5. #5
    Mohammed Zenuwah
    Guest

    Negative Working Hours

    Hi Folks,

    I'm hoping yous can help me, a few weeks ago I put up a couple of posts on
    calculating working hours with the use of the networkdays function. This
    works great, however I seem to be getting negative values causes by
    calculating time over the weekend(outwith working hours). Please example
    below.

    A B
    1 01/07/2005 11:50 01/07/2005 13:49
    2 06/07/2005 16:03 06/07/2005 17:00
    3 08/07/2005 13:43 11/07/2005 09:36

    Using the following expression I get these values.

    =(NETWORKDAYS(B2,A2)-1)*8.5+(MOD(B2,1)-MOD(A2,1))*24 = 1.99
    =(NETWORKDAYS(B3,A3)-1)*8.5+(MOD(B3,1)-MOD(A3,1))*24 = 0.95
    =(NETWORKDAYS(B4,A4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24 = -29.61

    Any ideas on how I can accurately give the number of hours for cells A3 and
    B3?

    Thanks in advance,

    Mo..

  6. #6
    Bob Phillips
    Guest

    Re: Negative Working Hours

    I think you have your A and B back to front

    =(NETWORKDAYS(A4,B4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Mohammed Zenuwah" <[email protected]> wrote in
    message news:[email protected]...
    > Hi Folks,
    >
    > I'm hoping yous can help me, a few weeks ago I put up a couple of posts on
    > calculating working hours with the use of the networkdays function. This
    > works great, however I seem to be getting negative values causes by
    > calculating time over the weekend(outwith working hours). Please example
    > below.
    >
    > A B
    > 1 01/07/2005 11:50 01/07/2005 13:49
    > 2 06/07/2005 16:03 06/07/2005 17:00
    > 3 08/07/2005 13:43 11/07/2005 09:36
    >
    > Using the following expression I get these values.
    >
    > =(NETWORKDAYS(B2,A2)-1)*8.5+(MOD(B2,1)-MOD(A2,1))*24 = 1.99
    > =(NETWORKDAYS(B3,A3)-1)*8.5+(MOD(B3,1)-MOD(A3,1))*24 = 0.95
    > =(NETWORKDAYS(B4,A4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24 = -29.61
    >
    > Any ideas on how I can accurately give the number of hours for cells A3

    and
    > B3?
    >
    > Thanks in advance,
    >
    > Mo..




  7. #7
    Mohammed Zenuwah
    Guest

    Re: Negative Working Hours

    Hi Bob,

    Thank your a legend, that worked a treat..

    Best regards,

    Mo..

    "Bob Phillips" wrote:

    > I think you have your A and B back to front
    >
    > =(NETWORKDAYS(A4,B4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Mohammed Zenuwah" <[email protected]> wrote in
    > message news:[email protected]...
    > > Hi Folks,
    > >
    > > I'm hoping yous can help me, a few weeks ago I put up a couple of posts on
    > > calculating working hours with the use of the networkdays function. This
    > > works great, however I seem to be getting negative values causes by
    > > calculating time over the weekend(outwith working hours). Please example
    > > below.
    > >
    > > A B
    > > 1 01/07/2005 11:50 01/07/2005 13:49
    > > 2 06/07/2005 16:03 06/07/2005 17:00
    > > 3 08/07/2005 13:43 11/07/2005 09:36
    > >
    > > Using the following expression I get these values.
    > >
    > > =(NETWORKDAYS(B2,A2)-1)*8.5+(MOD(B2,1)-MOD(A2,1))*24 = 1.99
    > > =(NETWORKDAYS(B3,A3)-1)*8.5+(MOD(B3,1)-MOD(A3,1))*24 = 0.95
    > > =(NETWORKDAYS(B4,A4)-1)*8.5+(MOD(B4,1)-MOD(A4,1))*24 = -29.61
    > >
    > > Any ideas on how I can accurately give the number of hours for cells A3

    > and
    > > B3?
    > >
    > > Thanks in advance,
    > >
    > > Mo..

    >
    >
    >


+ 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