Working out a date length in another cell

LeeBillington

Board Regular
Joined
Dec 31, 2016
Messages
89
basically i want the date in that cell to be worked out in another cell of the exact length.
i've copied this formula from somewhere and slightly changed it but all im getting is #VALUE

=IF(B13="","",DATEDIF(B13,J1,"Y")&" Years, "&DATEDIF(B13,J1,"YM")&" Months, "&DATEDIF(B13,J1,"MD")&" Days")
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
The #VALUE! error typically means that one of the referenced dates is not a true Excel date.

Are the dates in B13 and J1 manually entered? If so, try re-entering them.
 
Upvote 0
B13 Is A start date.. for example "01 January 2016" and J1 Is todays date. so i want it to work out the length of time between todays date and the start date.
 
Upvote 0
B13 Is A start date.. for example "01 January 2016" and J1 Is todays date. so i want it to work out the length of time between todays date and the start date.
What results do you get from these formulas:

=ISNUMBER(B13)

=ISNUMBER(J1)

If either one returns FALSE then whatever is entered in that cell is NOT a true Excel date.
 
Upvote 0
As Tony suggested, maybe 1 cell contains text rather than a real date.

test with =isnumber(B13) FALSE indicates text (and what you say it contains also indicates it may be text), we will need to convert it for you
 
Upvote 0

Excel 2010
BCDEF
11 Years, 0 Months, 1 Days
21 Years, 0 Months, 1 Days
3
4The date appears to be TEXT; try formula shown in B2.
151-Jan-16
1601 January 2016
1d
Cell Formulas
RangeFormula
B1=IF(B15="","",DATEDIF(B15,J1,"Y")&" Years, "&DATEDIF(B15,J1,"YM")&" Months, "&DATEDIF(B15,J1,"MD")&" Days")
B2=IF(B16="","",DATEDIF(B16+0,J1,"Y")&" Years, "&DATEDIF(B16+0,J1,"YM")&" Months, "&DATEDIF(B16+0,J1,"MD")&" Days")
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,042
Members
449,063
Latest member
ak94

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