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

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.

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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