Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

Formula to sum years passed since a listed date

Topic Labels: Formulas
Solved
Jump to Solution
645 2
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi all,
Is there a way to sum the number of years passed (as a whole number, rounded down) from a listed date to present? I’m using this for an asset register. There are 4 important columns:
A) date of purchase
B) original purchase value
C) annual depreciation (as a %)
D) current value

I’m looking to write a formula for current value (D) that will multiply the annual deprectiation % © by the number of years that has passed since the date of purchase (years since A), then multiply that by the original purchase value (B).

For example, if 3 years have passed since purchase date, the original price purchase value was $1,000, and the depreciation is 16.67%, it would be ((3*.1667)*1,000), returning a current value of $500.10. How do I get that 3 to caclucate automatically in a formula?

1 Solution

Accepted Solutions

What you want is the DATETIME_DIFF() function. Just taking a stab at your field names, it might look something like this:

DATETIME_DIFF(TODAY(), {Purchase Date}, "years") * Depreciation * {Purchase Value}

See Solution in Thread

2 Replies 2

What you want is the DATETIME_DIFF() function. Just taking a stab at your field names, it might look something like this:

DATETIME_DIFF(TODAY(), {Purchase Date}, "years") * Depreciation * {Purchase Value}

That worked, thanks!