Hello All,
Is there a formula to subtract from date to date = hour but don't count weekend.
5/21/15 4:53 PM - 5/25/15 4:53 PM = 48:00:00
Regards,
tt3
Hello All,
Is there a formula to subtract from date to date = hour but don't count weekend.
5/21/15 4:53 PM - 5/25/15 4:53 PM = 48:00:00
Regards,
tt3
Last edited by tuongtu3; 05-24-2015 at 03:29 AM. Reason: Solved
How do you arrive at 48? 21 (friday) + 24 (Monday) + 25 (Tuesday) = 72
A B C 1 5/21/2015 16:53 5/25/2015 16:53 72
C1=NETWORKDAYS(A1,B1)*24
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Hi FDibbins,
But is there a formula to get result in Hours and Minutes?
5/21/15 4:40 PM - 5/25/15 4:53 PM = 72:13
Regards,
tt3
How just B1-A1
and custom formatted as [h]:mm
azumi, OP needs to exclude weekends.
Try this...
=(NETWORKDAYS(A1,B1))+MOD(B1-A1,1)
formatted as Custom [h]:mm:ss;@
Hi FDibbins,
I tried your formula but it didn't work. Or I did something wrong here?
Regards,
tt3
What did it do, what did you get? Did you custom format the cell as I suggested?
A B C 1 5/21/2015 15:33:00 5/25/2015 16:53:40 73:20:40
C1=(NETWORKDAYS(A1,B1))+MOD(B1-A1,1)
custom formatted [h]:mm:ss;@
If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
Hi,
Can you help me to apply your formulainto below macro:![]()
Please Login or Register to view this content.
My current is:
Please help me to modify by using your Formula:![]()
Please Login or Register to view this content.
Tried below but wrong:![]()
Please Login or Register to view this content.
Changes "Value" to "Address":![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Regards,
tt3
Last edited by tuongtu3; 05-23-2015 at 06:25 PM.
This should be fix it:
=(NETWORKDAYS(A1,B1,)-1)+MOD(B1,1)-MOD(A1,1)
and formatted as [h]:mm:ss
That's perfect. Thank you very much for your time and help.
Regards,
tt3
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks