+ Reply to Thread
Results 1 to 10 of 10

=NETWORKDAYS where a date isn't included due to original report

  1. #1
    Registered User
    Join Date
    08-04-2010
    Location
    Rotherham
    MS-Off Ver
    Excel 2003
    Posts
    49

    =NETWORKDAYS where a date isn't included due to original report

    Hi

    I have to measure two criteria referral to assessment , assessment to delivery

    I have used referencing in order to do this thanks to the advice on this forum.

    Referral to Assessment
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    eg. REFERRAL 22/07/15 ASSESSMENT 22/07/15

    **this returns a figure of 1


    Assessment to Delivery
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    eg. ASSESSMENT 22/07.15 DELIVERY (BLANK)

    **this returns a figure of -30143 due to the blank in delivery date,the ones with a delivery date seem to work but as some items haven't been delivered I think I'd like it to return a '0'


    Both these formulas also use a holiday range. However I have a couple of issues with the results returned.

    If there is no date in Delivery on the original sheet it assumes the date is 00/01/1900 which when calculated in the above formulas returns a value of -30143

    I really hope I've explained this properly.

    Thanks

    Ben

  2. #2
    Registered User
    Join Date
    08-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: =NETWORKDAYS where a date isn't included due to original report

    What would you like it to return if the delivery date is blank?

  3. #3
    Registered User
    Join Date
    08-04-2010
    Location
    Rotherham
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: =NETWORKDAYS where a date isn't included due to original report

    Ideally a 0 or nothing at all.

  4. #4
    Registered User
    Join Date
    08-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: =NETWORKDAYS where a date isn't included due to original report

    I am not entirely sure which cell your delivery date is in but here goes:

    =IF(ISBLANK(Delivery date here),"",NETWORKDAYS('[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$C11,'[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$D11,'C:\Documents and Settings\ben.healy\Desktop\SERVICE REPORT\[HOLIDAY.xls]Sheet1'!$D$2:$D$10))

    Alternatively, you can check if there is a date(number) in the cell like so:

    IF(ISNUMBER(Delivery date here),NETWORKDAYS('[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$C11,'[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$D11,'C:\Documents and Settings\ben.healy\Desktop\SERVICE REPORT\[HOLIDAY.xls]Sheet1'!$D$2:$D$10),"")

    Any of these 2 should work.

  5. #5
    Registered User
    Join Date
    08-04-2010
    Location
    Rotherham
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: =NETWORKDAYS where a date isn't included due to original report

    Hi, ive included the formula on the referenced delivery date, rather than in the network days calc

    it returns a TRUE or FALSE.

    could it not return nothing for 00/01/1900

    The delivery field that has been referenced populates with 00/01/1900 even though its blank


    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Cheers
    Last edited by benjii19; 08-18-2015 at 07:13 AM.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: =NETWORKDAYS where a date isn't included due to original report

    Do the test in your NetworkDays function, not the cell with the delivery date.
    If you make the cell with your delivery date = "", then the NetworkDays function will return #Value! Error.

    Sinon posted perfectly good syntax for that.
    Where that formula shows "Delivery date here", replace that with the cell reference holding the delivery date.

  7. #7
    Registered User
    Join Date
    08-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: =NETWORKDAYS where a date isn't included due to original report

    The ISBLANK() looks in a cell to see if there is anything in it. This usually works unless there is a space or the result from a formula which contains "". That is why I offered the second formula which looks in the cell and if it finds a date (a date is basically a number in excel) then it proceeds with the NETWORKDAYS formula. Otherwise it returns nothing. If you want to change the way the formula works please provide a sample and expected results (input manually) so as to better understand what you need.

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: =NETWORKDAYS where a date isn't included due to original report

    How about

    =MAX(0, NETWORKDAYS('[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$C11,'[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$D11,'C:\Documents and Settings\ben.healy\Desktop\SERVICE REPORT\[HOLIDAY.xls]Sheet1'!$D$2:$D$10))

    and

    =MAX(0, NETWORKDAYS('[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$D11,'[WHEELCHAIRS MONTHLY REPORT JULY 15.xlt]boo824qy'!$I11,'C:\Documents and Settings\ben.healy\Desktop\SERVICE REPORT\[HOLIDAY.xls]Sheet1'!$D$2:$D$10))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  9. #9
    Registered User
    Join Date
    08-04-2010
    Location
    Rotherham
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: =NETWORKDAYS where a date isn't included due to original report

    Hi, I've had a play and tidied up a sample sheet, and shown the three methods discussed. Couple of issues, then again i may have forgotten something.

    DATASETSSAMPLE.xls

    Basically, if a field is empty eg B(REF),C(***) or D(DEL). then E (REF TO ***) or F (*** TO DEL) needs to reflect this.

    F16 is showing "BLANK" due to the delivery being before the assessment. Meaning MAX formula has probably worked the best. As ISBLANK shows a figure of -30136 due to no del date, and ISNUMBER hasnt shown anything in F.

    Thanks for your time

    Ben

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: =NETWORKDAYS where a date isn't included due to original report

    Your ISNUMBER and ISBLANK functions aren't working as expected because your 'blanks' in column D are NOT really blank.
    They actually contain 0's
    You just have 0's hidden in Options - Advanced, unchecked "Show a zero in cells with a zero value"
    Select one of those blanks in D, and look at the Formula Bar. It shows 1/0/1900, which is 0 formatted as a date.


    Also the true/false results of those 2 formulas should be reversed of each other
    For ISBLANK, it's
    =IF(ISBLANK(cell),"",NETWORKDAYS(...))

    For ISNUMBER, it's
    =IF(ISNUMBER(cell),NETWORKDAYS(...),"")

    You have it backwards in the ISNUMBER formula.


    But neither of those will work anyway because the cells actually contain zero's.
    so ISBLANK will be FALSE, and ISNUMBER will be TRUE.


    To resolve, Either.
    1) Remove the 0's so the cells are truely empty
    2) Try =IF(cell=0,"",NETWORKDAYS(...))

+ 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. If static date is included between two dates formula help
    By Lauracath22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2014, 01:33 PM
  2. Replies: 2
    Last Post: 04-03-2014, 10:12 AM
  3. [SOLVED] Trying to export a report to .XML file but no data being included in the file
    By steveallany2k6 in forum Access Tables & Databases
    Replies: 2
    Last Post: 04-18-2013, 07:16 AM
  4. Replies: 6
    Last Post: 02-01-2012, 01:51 PM
  5. Replies: 1
    Last Post: 06-08-2011, 02:00 AM
  6. Sort by date **attachment included**
    By Kostanzas200 in forum Excel General
    Replies: 2
    Last Post: 01-25-2008, 12:17 AM
  7. [SOLVED] [SOLVED] Calculating days between current date and a date in future NETWORKDAYS() fun
    By Faheem Khan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2005, 04: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