Excel Formula Issue - Subtracting two Dates to get a "Total number of days" to complete a process

Musical1FL 0 Reputation points
2024-08-08T13:19:27.5533333+00:00

 I am subtracting two dates to create a number of days it has taken to process an application for a volunteer organization. I'm using the standard Excel formula to subtract Column A from column B ( for example... June 30 - August 30th = 60 Days) ---  The problem is when the application has not been completed and the "Completed" column (B) is blank, the "Days" Column (showing the result) show's -44083 or some other number relative to the total number of days Excel allows you to track. So I need an "if - then" statement that says IF Column B is "blank" - render "0" or blank in the 'days" (Result) Column C----     the formula I'm using is =DAYS360(F4,M4) but I need an IF THEN STatement to show "0" or blank in the results column, when column B is empty (no completion date)

Microsoft 365 and Office Excel For business Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Tejas Satish Dhavale 570 Reputation points Student Ambassador
    2024-08-08T13:46:44.6666667+00:00

  2. Barry Schwarz 3,746 Reputation points
    2024-08-08T15:20:32.55+00:00

    You can test for data in the completion date cell with the ISBLANK function, by comparing the value to "" (the empty string), or by verifying the value is greater than 0. Using the example you provided, try

    =IF(ISBLANK(M4),"",DAYS360(F4,M4))
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.