I have a formula where I am comparing the number of days between two dates, however not all rows have one of the dates in which event Excel tries to calculate the difference between 01/01/1900 and the date e.g. a negative 41xxx number.
I want my formula to leave the cell blank when this happens and since my column type is whole numbers using "" will not work for me. Using 0 will not work either as it will affect my data as there will be some legitimate rows where 0 is the correct result.
How can I return a NULL so these rows are simply left empty?
Example formula below:
=IF([dateColA] = "", NULL, [dateColB]-[dateColA])
A small note, I am actually using Power BI Desktop however the engine accepts virtually all of Excel's formulas.