+ Reply to Thread
Results 1 to 3 of 3

If Statement with Datedif and Blanks

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    4

    If Statement with Datedif and Blanks

    Hello -Attached I'm trying to track the days when a Hiring Package is Sent/Offer Accepted or Declined.

    My formula only seems to be measuring the days between Sent to Accepted but if Accepted is Blank look at Declined and say "Offer Declined"

    MTR
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: If Statement with Datedif and Blanks

    Hi,

    Please modify the formula in D5 as following & drag down-

    =IF(OR(A5="",AND(B5="",C5=""))," ",IF(C5="",(DATEDIF(A5,B5,"d")),(DATEDIF(A5,C5,"d"))))

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: If Statement with Datedif and Blanks

    For date difference in days you don't really need DATEDIF, a simple subtraction will give the number of days - try this formula in D5 copied down

    =IF(COUNT(B5:C5),IF(B5,B5,C5)-A5,"")
    Audere est facere

+ 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] If statement with blanks
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 07:14 PM
  2. DateDif Average? Damn DateDif
    By UTCHELP in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2012, 08:53 AM
  3. if statement returning blanks
    By Mayrie in forum Excel General
    Replies: 3
    Last Post: 09-29-2009, 03:59 PM
  4. Replace 0s with blanks - IF statement
    By thomas.szwed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2007, 11:59 AM
  5. Represent blanks in an Excel IF statement?
    By JG in forum Excel General
    Replies: 3
    Last Post: 04-25-2006, 11:45 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