Skip to main content
Solved

Calculate the number of days


Forum|alt.badge.img+3

I need a formula that calculates the number of days we have owned a house.

Possession date to sold date and in the case there is no sold date I want it to calculate using today. TIA

Best answer by TheTimeSavingCo

Try this: 

IF( {Posession Date}, IF( {Sold Date}, DATETIME_DIFF( {Sold Date}, {Posession Date}, 'days' ), DATETIME_DIFF( TODAY(), {Posession Date}, 'days' ) ) )

View original
This topic has been closed for replies.

2 replies

TheTimeSavingCo
Forum|alt.badge.img+32

Try this: 

IF( {Posession Date}, IF( {Sold Date}, DATETIME_DIFF( {Sold Date}, {Posession Date}, 'days' ), DATETIME_DIFF( TODAY(), {Posession Date}, 'days' ) ) )


Forum|alt.badge.img+3
  • Author
  • New Participant
  • February 7, 2024

Perfect. Thank you