Calculating Shipping time EXCLUDING weekends

clogteachr

New Member
Joined
Jan 13, 2002
Messages
4
Mr. Excel,
I've been asked by a friend to help with the automatic calculation of shipping times. His supervisor wants to know the length of time it takes to from date, hour & minute a package was shipped to the date, hour & minute it was delivered EXCLUDING weekends.

How can this be done? I've tried a couple of things, but cannot get the weekends out of it.


Sam Gill CPS
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hello,

I know you posted this a long time ago, but I have only recently registered, and am trying to work my way through the unanswered posts, to gain as much experience as possible. I don't know if you need this any more, but I think I have come up with a solution.

Cell A1 is the Shipping Date (e.g. 01/01/03 00:00)
Cell A2 is the Arrvival Date (e.g. 10/01/02 00:00)

Cell B1 = YEAR(A1)
Cell C1 = MONTH(A1)
Cell D1 = DAY(A1)
Cell E1 = HOUR(A1)
Cell F1 = MINUTE(A1)

Copy these cell down into B2:F2

Cell H2 = NETWORKDAYS(A1,A2)

Cell B3 =IF(B1<B2,B2-B1,B1-B2)
Cell C3 =IF(C1<C2,C2-C1,C1-C2)
Cell D3 =IF(D1<=D2,D2-D1,D1-D2)
Cell E3 =IF(E1<=E2,E2-E1,24-(E1-E2))
Cell F3 =IF(F1<=F2,F2-F1,60-(F1-F2))

Cell C5 'TOTAL YEARS'
Cell D5 =B3

Cell C6 'TOTAL MONTHS'
Cell D6 =C3

Cell C7 'TOTAL DAYS'
Cell D7 =IF(AND(E2<E1,D3=1),0,D3-(D3-H2)-1)

Cell C8 'TOTAL HOURS'
Cell D8 =E3

Cell C9 'TOTAL MINS'
Cell D9 =F3


I think this works correctly, I have tried a few different dates, and they do seem to work, but let me know how you get on, if you sill require this.

Hope this is helpful.
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,438
Members
448,897
Latest member
dukenia71

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