algrigore
Occasional Contributor

Formula to find the age

Hello,

Can you please help me with an info?

Is there any formula that can be used to calculate the age if we have the date of birth?

Thanks

3 ACCEPTED SOLUTIONS

接受的解决方案
AntonMineev
Certified Master Anaplanner

Hi@algrigore!

You can make formula "(Today Date - Birthday)/365"

Снимок экрана 2021-05-13 в 11.29.59.png

View solution in original post

abhay.kanik
SuperContributor

@algrigore,

You will need one more line item to hold current date and the third line item which will be number formatted and formula which will be "(Current date - Date of birth)/365"which will give you age in years.

Thanks

Abhay

View solution in original post

AntonMineev
Certified Master Anaplanner

Yes, there is currently no formula that returns the current day. The community has an idea about this, you can support it.
In practice, we are doing an integration that loads the current date into the desired cell every day.

If the accuracy of the calculation is not so important to you and there is no way to load the date, a good solution would be to use the formula from Chris below (with YEAR).

View solution in original post

7 REPLIES7
AntonMineev
Certified Master Anaplanner

Hi@algrigore!

You can make formula "(Today Date - Birthday)/365"

Снимок экрана 2021-05-13 в 11.29.59.png

algrigore
Occasional Contributor

Hey,@AntonMineev

Thanks, there is a formula also for the current date ?or I need to import some data?

AntonMineev
Certified Master Anaplanner

Yes, there is currently no formula that returns the current day. The community has an idea about this, you can support it.
In practice, we are doing an integration that loads the current date into the desired cell every day.

If the accuracy of the calculation is not so important to you and there is no way to load the date, a good solution would be to use the formula from Chris below (with YEAR).

abhay.kanik
SuperContributor

@algrigore,

You will need one more line item to hold current date and the third line item which will be number formatted and formula which will be "(Current date - Date of birth)/365"which will give you age in years.

Thanks

Abhay

ChrisAHeathcote
Community Boss

@algrigore

How about=YEAR(Today) - YEAR(Birthday)

Its a little simpler than the solution offered.

Chris
HeathcoteAndHerran.com
abhay.kanik
SuperContributor

@ChrisAHeathcote

I think it will not give half years or any fraction like 4.6, 7.5 I am not sure, definitely it can be used to get result in integer value only.

Thanks

Abhay

ChrisAHeathcote
Community Boss

@abhay.kanik

Yes, you are right.

The solution will only provide whole numbers.

Chris
HeathcoteAndHerran.com