Subtracting Business Hours

hollinan

New Member
Joined
Jun 11, 2008
Messages
28
I am trying to subtract 8 hours from a date / time field. I want to only include weekdays and business hours. Can someone help? Thanks

For ex.

Date/time Date need to order (-hour bus hours)

<TABLE class=MsoNormalTable style="WIDTH: 174pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=232 border=0><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; WIDTH: 87pt; PADDING-TOP: 0in; HEIGHT: 12.75pt" vAlign=bottom noWrap width=116 height=17 x:num="39619.583333333336">
6/20/08 14:00<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
</TD><TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; WIDTH: 87pt; PADDING-TOP: 0in; HEIGHT: 12.75pt" vAlign=bottom noWrap width=116 height=17 x:num="39618.666666666664">
6/19/08 16:00<o:p></o:p>
</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; WIDTH: 87pt; PADDING-TOP: 0in; HEIGHT: 12.75pt" vAlign=bottom noWrap width=116 height=17 x:num="39622.375">
6/23/08 9:00<o:p></o:p>
</TD><TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; WIDTH: 87pt; PADDING-TOP: 0in; HEIGHT: 12.75pt" vAlign=bottom noWrap width=116 height=17 x:num="39619.416666666664">
6/20/08 10:00<o:p></o:p>
</TD></TR></TBODY></TABLE>
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

hollinan

New Member
Joined
Jun 11, 2008
Messages
28
Anything from Monday - Friday 8AM to 5PM.

So if I have a value of Monday 9AM... Subtracting 8 business hours would give me a value of Friday 10AM as it should only count weekdays from 8-5. Does that make sense?
 
Upvote 0

Forum statistics

Threads
1,191,687
Messages
5,988,019
Members
440,125
Latest member
vincentchu2369

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