+ Reply to Thread
Results 1 to 5 of 5

Having Issues With Calculating Dates

  1. #1
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Having Issues With Calculating Dates

    Hi,

    The formula that I am using is NETWORKDAYS([@[Start date]],[@[End date]],lstHolidays)
    The results are inconsistent.

    What I am trying to do is have every day count as 1 day. So that if:
    Start Date and End Date are the same, it is one day
    Today - Today = 1
    Today - Yesterday = 2
    Today - 2 days ago = 3

    I also have 1/2 days that I would like to show up as 0.5. It would be nice if that could be included in the formula.

    The attached spreadsheet has an example.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Having Issues With Calculating Dates

    Your holiday date loist isn't in the workbook ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Having Issues With Calculating Dates

    Try this:

    =IF([@[Start date]]=[@[End date]],1,NETWORKDAYS([@[Start date]],[@[End date]],lstHolidays))*IF([@[Type of leave]]="Half Day",0.5,1)

  4. #4
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Re: Having Issues With Calculating Dates

    This has fixed everything. Thank you for your help.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Having Issues With Calculating Dates

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Issues with calculating concurrent incidents
    By SwampyNZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2020, 06:56 AM
  2. Staffing Schedule Issues with Calculating Times
    By travis0123456789 in forum Excel General
    Replies: 16
    Last Post: 08-23-2019, 03:43 PM
  3. Replies: 1
    Last Post: 09-23-2018, 09:29 PM
  4. [SOLVED] Has anyone else had issues with formulas not calculating in Excel 2016?
    By Grimace in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2017, 08:03 PM
  5. Replies: 3
    Last Post: 03-14-2016, 11:08 PM
  6. Excel 2007 : issues with vlookup not calculating
    By harry1013 in forum Excel General
    Replies: 3
    Last Post: 07-09-2012, 04:13 PM
  7. [SOLVED] xls spreadsheet constantly calculating causing navigation issues
    By Matabi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2006, 08:10 AM

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