Calculating the difference between two dates

Morfi

Board Regular
Joined
Jun 16, 2009
Messages
97
I've got a column that records the date I receive something and a column that calculates the date it should be responded to (15 working days).

I now want to include a column that works out the number of days to go until the deadline date is reached.

Column A = list of bank holidays from row 2 to row 11
Column B = date of receipt of correspondence
Column C = deadline for response

What formula could I use to calculate how many working days to go until the deadline date?

Thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Have a look at the NETWORKDAYS function. You may need to add-in the Analysis Toolpak if you are using a version of Excel prior to 2007.
 
Upvote 0
I've used the Network days function for another of the calculations on the same spreadsheet and they work ok. Can anyone suggest what the formula might be or can't it be done without analysis toolpak?

Thanks
 
Upvote 0
If C2 is a future date then try

=NETWORKDAYS(TODAY(),C2,A$2:A$11)

When you reach and pass C2 then that will return a negative number so you might want to control that, e.g. stop it going negative by using MAX, i.e.

=MAX(NETWORKDAYS(TODAY(),C2,A$2:A$11),0)
 
Upvote 0
Thanks. That seems to work but I have just realised that I don't want that column to include a number if there is an entry in the date of response column i.e.

Column A = list of bank holidays from row 2 to row 11
Column B = date of receipt of correspondence
Column C = deadline for response
Column D = date of response

If there is an entry in column D then I would like the formula to enter a blank for the number of days until the deadline date. Can this be done?

Thanks
 
Upvote 0
Thanks for that. It seems to be counting the number of days between the deadline date and the date of response i.e. the difference in days between column C and D. Is there a way this can show a blank rather than a figure?
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

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