Adding days to Date/Time and exclude weekends

helpwexcel

New Member
Joined
Dec 20, 2016
Messages
4
Hello Everyone,

I need help and appreciate everyone's expertise.

I have a date with time, need to add number of days, exclude weekends. Results should show Date with Time.

A2 = Jul 8, 2016 10:30:06
B2 = 2.917 days

I tried this: WORKDAY(A2,b2)
Result: 7/12/2016 0:00:00

Need results to consider the start date/time.

Thanks for your help.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
if i'm understanding correctly and you just need the time from A2 added back to the date then maybe...

=WORKDAY(A2,B2)+MOD(A2,1)
 
Upvote 0
if i'm understanding correctly and you just need the time from A2 added back to the date then maybe...

=WORKDAY(A2,B2)+MOD(A2,1)


Thank-you Weazel.

I tried putting the time back in. 2.917 days is 70 hours

Results = 7/12/2016 10:30:06
But should be 7/12/2016 8:30:06
 
Upvote 0
I'm sure theres a better way but maybe....

=MOD(A2,1)+MOD(B2,1)+WORKDAY(A2,B2)
 
Upvote 0
I'm sure theres a better way but maybe....

=MOD(A2,1)+MOD(B2,1)+WORKDAY(A2,B2)
Just to mention: the above formula stumbles over some data pairs, for example:
12/21/2016 23:45:00 and 2.2, or 12/19/2016 08:30:00 and 4.7.

Here is the formula that works:

=WORKDAY(A2,B2+MOD(A2,1))+MOD(A2+B2,1)
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,665
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top