+ Reply to Thread
Results 1 to 4 of 4

calculation incorrect

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    calculation incorrect

    I am trying to calculate a integer number difference from two dates (TAT = Due-Date - Result_Date). The number is calculated and excludes weekends and holidays. The function below seems to calculate a number but doesn't exclude weekends or holidays.

    For example, if Due_Date is 9/26/2014 and Result_Date is 9/30/2014, then TAT is calculated to be 5 (should be 2)

    Since 9/26/2014 is a Friday only Friday and Monday are used in the calculation. Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: calculation incorrect

    Have you tried the NETWORKDAY function?
    Martin

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: calculation incorrect

    I want to use VB for this and refer to a table of holidays:

    VB
    Please Login or Register  to view this content.
    Not sure if that will work. Thanks .

    If there is a holiday date that matches [Due_Date] - [Result-Date] then it is excluded?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: calculation incorrect

    =NETWORKDAYS(fromDate, toDate, tblHoliday)
    Entia non sunt multiplicanda sine necessitate

+ 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. Incorrect calculation bug in VBA? 4.1 + 2.05 <> 6.15???
    By whitespaces in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2011, 12:04 PM
  2. Formula calculation is incorrect.
    By supernova5271 in forum Excel General
    Replies: 9
    Last Post: 08-16-2010, 07:35 PM
  3. [SOLVED] Calculation is incorrect
    By Scott in forum Excel General
    Replies: 4
    Last Post: 03-24-2006, 08:30 AM
  4. [SOLVED] incorrect calculation
    By Robin in forum Excel General
    Replies: 4
    Last Post: 09-22-2005, 08:05 AM
  5. Incorrect Calculation
    By Sam Goddard in forum Excel General
    Replies: 6
    Last Post: 05-18-2005, 01:06 PM

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