ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   subtracting dates leaves date/number or date (https://www.excelbanter.com/excel-worksheet-functions/219366-re-subtracting-dates-leaves-date-number-date.html)

Mike H

subtracting dates leaves date/number or date
 
Hi,

Several ways and here's one

=IF(COUNT(C6,C5)=2,C6-C5,"")

Mike

"Mark" wrote:

Across the columns there are projected dates in row C5
C6 is empty, but "will" contain Actual dates

C7 is =C6-C5 formatted to number

My problem or question is without and "Actual" date in C6
I get a "numerical date" in C7 ,
because it is calculating C6 against C5.
thus rendering C7 with a numerical value of C5.

Is it possible to have C7 (with the formula)stay blank or white until and
actual date is placed in C6?

Thank you once, again, and for the numerous helps today.

Mark



All times are GMT +1. The time now is 02:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com