+ Reply to Thread
Results 1 to 5 of 5

Days Outstanding

  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    New York, NY
    MS-Off Ver
    2010
    Posts
    2

    Days Outstanding

    I created the following formula to calculate the number of days an invoice is outstanding since the date it was submitted to Accounts Payable.
    =IF(ISBLANK(N3),NETWORKDAYS(K3,TODAY(),'OfficeHolidays'!$D$2:$D$15)," ")

    N3 refers to the payment date, K3 refers to the date an invoice was submitted to Accounts Payable, and 'OfficeHolidays' is a table of days that the office is closed (so it is excluded from the count).

    The issue that I'm having is that when K3 is blank, it shows 30242 as the days outstanding. Is there a way to edit this formula so that it shows a blank cell when K3 is blank?

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Days Outstanding

    I do not know if that helps solve the problem
    Try
    =IF(K3="","",IF(ISBLANK(N3),NETWORKDAYS(K3,TODAY(),'OfficeHolidays'!$D$2:$D$15)," "))

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Days Outstanding

    Try

    =IF(ISBLANK(N3),IF(ISBLANK(K3),"",NETWORKDAYS(K3,TODAY(),OfficeHolidays!$D$2:$D$15)),"")

  4. #4
    Registered User
    Join Date
    12-04-2015
    Location
    New York, NY
    MS-Off Ver
    2010
    Posts
    2

    Re: Days Outstanding

    Thanks John, this seems to have cleared up the 30242 result I was getting, but now I get a the #VALUE! error when there is an input in k3 and a blank in n3.

    I think the "30242" may be coming up because both k3 and n3 are blank. My previous formula calculates the days properly when there is an input in k3 and turns into a blank when there are inputs in both k3 and n3. I'm not sure if there is a workaround for this or why 30242 comes up when both cells are blanks.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Days Outstanding

    If either K3 or N3 are blank do you want a result of blank?

    =IF(OR(ISBLANK(K3),ISBLANK(N3)),"",NETWORKDAYS(K3,TODAY(),OfficeHolidays!$D$2:$D$15))

+ 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. [SOLVED] Outstanding days clarification
    By initial e in forum Excel General
    Replies: 6
    Last Post: 10-30-2013, 12:42 PM
  2. outstanding dates
    By hitman0042 in forum Excel General
    Replies: 5
    Last Post: 08-12-2010, 01:52 AM
  3. Checks Outstanding
    By AFIOF719 in forum Excel General
    Replies: 4
    Last Post: 01-14-2010, 12:27 PM
  4. days outstanding
    By lottieloo in forum Excel General
    Replies: 2
    Last Post: 03-30-2008, 02:52 PM
  5. sumproduct - many days a cases have been outstanding
    By JACKIEDANCAR in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-16-2008, 05:52 PM
  6. Total days outstanding formula
    By ballard in forum Excel General
    Replies: 5
    Last Post: 11-07-2007, 12:20 PM
  7. query for outstanding
    By Lando in forum Excel General
    Replies: 0
    Last Post: 08-08-2006, 12:35 AM
  8. VBA, Conditional formatting, Days outstanding count
    By AdP in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2005, 08:05 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