Converting "1 Years 10 Months 3 Days" From Today into an Actual Date?

Marengah

New Member
Joined
May 30, 2024
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hello All!

I am in desperate need of a solution to this problem. While the logic is simple enough, my research on executing hasn't been as fruitful. Any input would be greatly appreciated.

For this example, I have " 1 years 10 months 3 days " in cell B2. Today's date next to it set as 02/06/2025 (Feb 6th 2025). My expected output is the date 04/03/2023 or April 4th 2023 as that is the date exactly 1 years 10 months 3 days from today.

Hopefully I'm making sense. Any help is greatly appreciated!

Thank you in advance!
 
Last edited by a moderator:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If you are still using Excel 2019 try this. Format the result column with whatever date format you want.

25 02 07.xlsm
BC
1
21 years 10 months 3 days04-April-2023
34 years 1 months 20 days18-December-2020
42 years 0 months 2 days05-February-2023
Future date
Cell Formulas
RangeFormula
C2:C4C2=EDATE(TODAY(),-LEFT(B2,FIND(" ",B2))*12-MID(B2,SEARCH("months",B2)-3,2))-MID(B2,SEARCH("days",B2)-3,2)
 
Upvote 1
Solution
here is another formula that could work

Test - Update1.xlsx
JKLMNO
321 years 10 months 3 days2/7/254/4/23
Test
Cell Formulas
RangeFormula
M32M32=TODAY()
O32O32=DATE(YEAR(M32)-VALUE(LEFT(J32,SEARCH(" years",J32))),MONTH(M32)-VALUE(RIGHT(LEFT(J32,SEARCH(" months",J32)),3)), DAY(M32)-VALUE(RIGHT(LEFT(J32,SEARCH(" days",J32)),3)))
 
Upvote 1
@Marengah
Noting that different months have different numbers of days in them, can you please confirm what result you would expect if TODAY was 31 March 2025 and the text was "0 years 1 months 0 days"?
 
Upvote 0
If you are still using Excel 2019 try this. Format the result column with whatever date format you want.

25 02 07.xlsm
BC
1
21 years 10 months 3 days04-April-2023
34 years 1 months 20 days18-December-2020
42 years 0 months 2 days05-February-2023
Future date
Cell Formulas
RangeFormula
C2:C4C2=EDATE(TODAY(),-LEFT(B2,FIND(" ",B2))*12-MID(B2,SEARCH("months",B2)-3,2))-MID(B2,SEARCH("days",B2)-3,2)
Thank you so much, you are the MVP!
 
Upvote 0

Forum statistics

Threads
1,226,466
Messages
6,191,188
Members
453,646
Latest member
BOUCHOUATA

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