+ Reply to Thread
Results 1 to 2 of 2

Date function

  1. #1
    Matt S
    Guest

    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

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,786
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1