ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Date function (https://www.excelbanter.com/excel-worksheet-functions/81791-date-function.html)

Matt S

Date function
 
I need to put together a function or formula that lets me work out how many
working hours there are between now and a given date.
Has anybody got any suggestions as to the best way of doing this?
It seems like the sort problem that someone must have encountered before.
Any assistance gratefully received.

Thanks

daddylonglegs

Date function
 

Do you want to consider times or just dates?

If the latter then

=NETWORKDAYS(NOW(),A1)

will give you the number of working days from today until the date in
A1 (including both today and A1) so if you have a working day of 8
hours you just need

=NETWORKDAYS(NOW(),A1)*8 to give the number of hours.

You can make it more complicated and include times if you wish.....

note: NETWORKDAYS requires Analysis ToolPak add-in


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=530287



All times are GMT +1. The time now is 04:02 PM.

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