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.
 

Some videos you may like

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Weazel

Well-known Member
Joined
Dec 24, 2011
Messages
3,155
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)
 

helpwexcel

New Member
Joined
Dec 20, 2016
Messages
4
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
 

helpwexcel

New Member
Joined
Dec 20, 2016
Messages
4

ADVERTISEMENT

Thanks Tetra201.

It should be 7/13/2016 8:30:06

Now how do we make Excel show that.
 

Weazel

Well-known Member
Joined
Dec 24, 2011
Messages
3,155
I'm sure theres a better way but maybe....

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

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,631
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,842
Messages
5,598,396
Members
414,235
Latest member
sucosama

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
Top