ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculation of working days between two dates (https://www.excelbanter.com/excel-worksheet-functions/152582-calculation-working-days-between-two-dates.html)

Andy B

Calculation of working days between two dates
 

I am trying to calculate the difference between one cell and another - both
having dates in, to establish if a service level is being achieved for
completing a task.

eg. B2 = 25/6/07 and L2 = 30/6/07 (5 days)

currently if there is no date in L2, it will say "open call" - indicating
that it has not been completed.

the calculation used currently is =IF(ISERROR(DAYS360(B2,L2,TRUE)),"Open
Call",DAYS360(B2,L2,TRUE)) however this does not show working days taken to
complete the call, which is key to the measurement.

have tried advice below, but unfortunately it still includes the weekend
days - can I
include the WEEKDAYS or NETWORKDAYS formula in this somehow? thanks

"Mike H" wrote:

Andy,

Try this:-

=IF(L2="","Open Call",L2-B2)

Format as general. It assumes L2 will always be a later date then B2 or blank.

Mike


Bernie Deitrick

Calculation of working days between two dates
 
Andy,

=IF(L2="", "Open Call",NETWORKDAYS(B2,L2))

HTH,
Bernie
MS Excel MVP


"Andy B" wrote in message
...

I am trying to calculate the difference between one cell and another - both
having dates in, to establish if a service level is being achieved for
completing a task.

eg. B2 = 25/6/07 and L2 = 30/6/07 (5 days)

currently if there is no date in L2, it will say "open call" - indicating
that it has not been completed.

the calculation used currently is =IF(ISERROR(DAYS360(B2,L2,TRUE)),"Open
Call",DAYS360(B2,L2,TRUE)) however this does not show working days taken to
complete the call, which is key to the measurement.

have tried advice below, but unfortunately it still includes the weekend
days - can I
include the WEEKDAYS or NETWORKDAYS formula in this somehow? thanks

"Mike H" wrote:

Andy,

Try this:-

=IF(L2="","Open Call",L2-B2)

Format as general. It assumes L2 will always be a later date then B2 or blank.

Mike





All times are GMT +1. The time now is 08:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com