Difference between the a Submit Date time stamp and A Date A

Jon Rich

New Member
Joined
Nov 14, 2005
Messages
1
I am trying to get the Difference between the a Submit Date time stamp and A Date Approved time stamp not counting non working hours ( before 9:00 AM, after 5:PM, wee kends and Holidays) in hours using excel.
I used this to bring the time portion into working hours range =IF(MOD(A2,1)<E2,INT(A2)+E2,IF(MOD(A2,1)>F2,INT(A2)+F2,A2))

And I use this to pull out the non working hours and week end/Holiday

=IF(AND(INT(B2)=INT(D2),NOT(ISNA(MATCH(INT(B2),$J$2:$J$9,0)))),0,ABS(IF(INT(B2)=INT(D2),ROUND(24*(D2-B2),2),(24*(F2-E2)*(MAX(NETWORKDAYS(B2+1,D2-1,$J$2:$J$9),0)+INT(24*(((D2-INT(D2))-(B2-INT(B2)))+(F2-E2))/(24*(F2-E2))))+MOD(ROUND(((24*(D2-INT(D2)))-24*E2)+(24*F2-(24*(B2-INT(B2)))),2),ROUND((24*(F2-E2)),2))))))

This set up can not handle if the time stamp falls on a week end/Holiday.

If any one has done something along this line or is very good in excel I would be more than happy to send a sample excel sheet to show them more details.

Thank you all

My Email is Jon_Rich@ML.com
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,019
Messages
5,834,983
Members
430,331
Latest member
Syed Yasir Hannan

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