+ Reply to Thread
Results 1 to 7 of 7

Getting an garbage value - If condition is not meet.

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Post Getting an garbage value - If condition is not meet.

    Getting an garbage value in column E Row 48.

    If the condition do not match in the given below formula then it should remain blank.

    I am using this formula =IF(D12<>"",NETWORKDAYS(D12,C12,'US Holidays'!$B$3:$B$14)-1,NETWORKDAYS(B12,C12,'US Holidays'!$B$3:$B$14)-1)

    For Row 48 formula is - =IF(D48<>"",NETWORKDAYS(D48,C48,'US Holidays'!$B$3:$B$14)-1,NETWORKDAYS(B48,C48,'US Holidays'!$B$3:$B$14)-1)

    Attached Excel for reference.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Getting an garbage value - If condition is not meet.

    You have no end date?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Getting an garbage value - If condition is not meet.

    That's because the resolved date is blank for this row. You need to check if it is blank and return a value that means something to you.

  4. #4
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Getting an garbage value - If condition is not meet.

    Thanks for quick response.

    Yes, I know the resolved date is blank, so if it is blank then it should not through garbage value instead it should be blank.

  5. #5
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Getting an garbage value - If condition is not meet.

    =IF(ResolvedDate is blank,"This is garbage",your formula)

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Getting an garbage value - If condition is not meet.

    Quote Originally Posted by Shahbazk View Post
    Thanks for quick response.

    Yes, I know the resolved date is blank, so if it is blank then it should not through garbage value instead it should be blank.
    No, your formula is testing for D being blank, not C - you would need to test for them both

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,919

    Re: Getting an garbage value - If condition is not meet.

    another way:

    =IF(C2="","",NETWORKDAYS(IF(D2<>"",D2,B2),C2,'US Holidays'!$B$3:$B$14)-1)

+ 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] Color a cell If 2 other cells meet condition, undo cell color if third cell meet condition
    By aftbrah in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-28-2016, 01:17 AM
  2. meet condition
    By dklem in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-30-2015, 06:11 AM
  3. [SOLVED] Looping the macro until it meet the condition.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2015, 03:43 AM
  4. List cells that meet condition
    By jwillis07 in forum Excel General
    Replies: 3
    Last Post: 10-22-2014, 04:54 AM
  5. Return top values that meet a certain condition
    By ggmm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2013, 05:54 PM
  6. MIN of only cells that meet condition
    By jbc242 in forum Excel General
    Replies: 4
    Last Post: 06-27-2011, 12:18 PM
  7. Show if any cell has meet condition
    By Danielle123 in forum Excel General
    Replies: 4
    Last Post: 03-25-2008, 03:19 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