Need Assistance With Date Formula

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
Office Version
  1. 365
Platform
  1. Windows
I would appreciate assistance with a date formula.
All of my static dates are in column C starting with C1, using a format of xx/xx/xxxx.
In column D starting with D1, I am using =(DATEDIF(C1,TODAY(),"Y") which tells me how many years there are between the value of C1 and today's date.
What I would like to do also have the amount of remaining months along with the years in the same cell.
For example: "16 Years and 2 Months"
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
This is the formula I use (got it from internet but don't remember the source) to calculate exact age upto the days. You can use it in Cells D1 and below and eliminate/modify the part you don't need. Try it and revert -

Excel Formula:
=IFS(ISBLANK(C1),"",
TRUE,
DATEDIF(C1,TODAY(),"y")&" yrs "&
          DATEDIF(C1,TODAY(),"ym")&" mths "&
          (DATE(YEAR(TODAY()), MONTH(TODAY()) - DATEDIF(C1,TODAY(),"m"), DAY(TODAY())) - C1)&" days")
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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