Time Left Until Maturity

jdpro

Board Regular
Joined
May 1, 2016
Messages
91
Office Version
  1. 365
Platform
  1. MacOS
Hello!
A maturity date is in cell R3 9/1/2054.
I would like an Excel formula for cell V3 concatenated that will calculate the number of years, months, and days left for me, and then return "Matured" once the end date is reached. Can someone please help me with this? Thank you very much.
 
Try.
Excel Formula:
=IF(R3<=TODAY(),
    "Matured",
    DATEDIF(TODAY(),R3,"Y") & "y" &
    DATEDIF(TODAY(),R3,"YM") & "m" &
    IF(DAY(R3)>=DAY(TODAY()),
       DAY(R3)-DAY(TODAY()),
       R3-DATE(YEAR(R3),MONTH(R3)-1,DAY(TODAY()))) & "d")
 
Upvote 0
Solution
.. in case you are interested in a shorter version
(My dates are d/m/y format)

25 02 03.xlsm
RST
2Maturity DatePost 2Post 5
31/08/20261y5m29d1y5m29d
415/01/2025MaturedMatured
59/01/205428y11m6d28y11m6d
64/02/20250y0m1d0y0m1d
73/02/20327y0m0d7y0m0d
ymd
Cell Formulas
RangeFormula
S3:S7S3=IF(R3<=TODAY(), "Matured", DATEDIF(TODAY(),R3,"Y") & "y" & DATEDIF(TODAY(),R3,"YM") & "m" & IF(DAY(R3)>=DAY(TODAY()), DAY(R3)-DAY(TODAY()), R3-DATE(YEAR(R3),MONTH(R3)-1,DAY(TODAY()))) & "d")
T3:T7T3=LET(t,TODAY(),x,DATEDIF(t,R3,{"Y","YM"}),IF(R3<=t,"Matured",TEXTJOIN("y",,x)&"m"&R3-EDATE(t,SUM(x*{12,1}))&"d"))
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,226,771
Messages
6,192,924
Members
453,767
Latest member
922aloose

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