Google Sheets – How to Automatically Calculate ‘Days Since’

dategoogle sheets

I have a spreadsheet with several columns and one of them is for date (column D). How do I make the next column (E) automatically display the days passed from date in D until now on open?

I have tried with

=DAYS360(D1,NOW())

but it displays #VALUE!

Best Answer

Use the formula =IF([cell on same row in D column] <> "", today()-[cell on same row in D column], "")

So in D2 (for example):

=IF(D2 <> "", TODAY()-D2, "")

TODAY() returns the current date. The current date minus the specified date equals the days passed between the dates.

The code above means "If D2 is not empty set current cells value to days since else set it to be empty"