+ Reply to Thread
Results 1 to 4 of 4

If formula, if two cells are blank, return blank, if one has a date, subtract todays date

  1. #1
    Registered User
    Join Date
    10-24-2005
    Location
    Lake Forest, CA
    MS-Off Ver
    2007
    Posts
    56

    If formula, if two cells are blank, return blank, if one has a date, subtract todays date

    I hope this makes sense! Using one spreadsheet with three date columns and two columns counting days.

    If there is a value in Resolution date, then Column N is blank
    If there is no value in Submit date and Resolution date, then Column N is blank
    If there is no value in Resolution date, and there is a value in Submit date, subtract Submit date from todays date to show how many days it has been pending approval

    Created on = J4
    Submitted on = K4
    Resolution Date = L4
    Days to Approve = M4 I've got that formula =IF(L4="","",L4-K4)
    Days Pending Approval= N4 (cell with formula)

    If Resoultion Date L4 has a value, return blank
    If Submit on K4 and Resoultion date L4 are blank, return blank
    If Resolution date L4 is blank, and Submit on K4 has a value, subtract Todays date from Submit on K4 to show Days Pending Approval

    Cell J4______Cell K4______Cell L4__________Cell M4__________Cell N4
    Created on___Submit On___Resolution Date___Days to Approve___Days Pending Approval
    4/5/13_______blank______Blank____________Blank___________Blank
    4/5/13_______4/5/13_____4/7/13___________2_______________Blank
    4/5/13_______4/5/13_____Blank____________Blank___________()Today-K4
    Last edited by amthyst826; 04-24-2013 at 01:15 PM.

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: If formula, if two cells are blank, return blank, if one has a date, subtract todays d

    Hello,

    You can try this formula
    Please Login or Register  to view this content.
    Paste it on N5 (that's where you have your first row of data right?)
    (copy pasta from Ford)
    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

    Regards,
    Lem

  3. #3
    Registered User
    Join Date
    10-24-2005
    Location
    Lake Forest, CA
    MS-Off Ver
    2007
    Posts
    56

    Re: If formula, if two cells are blank, return blank, if one has a date, subtract todays d

    I think that did it! Thanks!!!

  4. #4
    Registered User
    Join Date
    10-24-2005
    Location
    Lake Forest, CA
    MS-Off Ver
    2007
    Posts
    56

    Re: If formula, if two cells are blank, return blank, if one has a date, subtract todays d

    Hope you can help me again. While out of the office, another column was added to my report. I should be able to simply adjust the column references, but it isn't working. All cells come back blank. No errors and no proper results. I am flummoxed.

    =IF(NOT(ISBLANK(M3)),"",IF(ISBLANK(L3),"",TODAY()-L3))

    Formula is in cell O3 (Days Pending)
    M3 = Resolution Date, may or may not be blank
    L3 = Submit Date, may or may not be blank


    If Resolution date is blank and submit date is blank, result is blank
    If Resolution date is not blank and submit date is not blank, result is blank

    If Resolution date is blank, but Submit date has a value, subtract todays date from Submit date to provide the number of days the item has been pending.

    I really appreciate any assistance you could offer!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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