• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Please help me with , difference(aging) between two columns ( in days and hours ) . Only wor

danish Sekhri

New Member
Please help me with , difference(aging) between two columns ( in days and hours ) . Only working days ie Sunday to Thursday and business hours 8AM - 5 PM .

First Column-
29/3/18 14:34:48


Second Column-
9/11/2018 14:30:00


Please Help
 
The basis of a solution is
= NETWORKDAYS.INTL( start, end, 7 )
which gives the working days.
The time difference would be
24 * (MOD(end,1) - MOD(start,1))

Whilst the results would be correct, they might show it in the form
161 days minus 1 hour

To get the hours as a positive number
= MOD( 24 * (MOD(end,1) - MOD(start,1)), 9 ),
in which case you would need to subtract a day
= NETWORKDAYS.INTL( start, end, 7 ) - (MOD(start,1) > MOD(end,1))
 
Hi Peter

I am not getting the required result by using the above formula.

difference(aging) between two columns ( in days and hours ) . Only working days ie Sunday to Thursday and business hours 8AM - 5 PM .

Start
Sep 9, 2018, 12:16 PM

End
9/10/18 2:30 PM
 
Last edited by a moderator:
Hi Peter,

I am not able to upload the file here but if you can share your Email ID i cna share you the file.

When i am trying the formula its not working i mean its giving me #value .
 
Back
Top