Time remaining to birth date.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
I have this formula that calculate the time remaining before a birth date but it's wrong somewhere, can someone fix it please ?

Thank you.

=DATEDIF(TODAY(),EDATE(B4,(YEAR(NOW())-YEAR(B4)+1)*12),"ym")&" Mois "&DATEDIF(TODAY(),EDATE(B4,(YEAR(NOW())-YEAR(B4)+1)*12),"md")&" Jours"

Time left.PNG
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Your formula works for me with that date, but from the MS website
Important: We don't recommend using the "MD" argument, as there are known limitations with it. See the known issues section below.
 
Upvote 0
Thank you Fluff,

What I am saying is in E4 shouldn't it be 3 months 26 Days ? instead of 116 days !
 
Upvote 0
With a start date of 3rd Jan 95 you should get 3 days (on 31st Dec 19) not 3 months 26 Days, which is what I get. (or 2 days from today)

Book1
ABCDE
1
201/01/2020
3
403/01/19950 Mois 2 Jours
Dup
Cell Formulas
RangeFormula
B2B2=TODAY()
E4E4=DATEDIF(TODAY(),EDATE(B4,(YEAR(NOW())-YEAR(B4)+1)*12),"ym")&" Mois "&DATEDIF(TODAY(),EDATE(B4,(YEAR(NOW())-YEAR(B4)+1)*12),"md")&" Jours"
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,849
Members
449,194
Latest member
HellScout

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top