VoG
Legend
- Joined
- Jun 19, 2002
- Messages
- 63,650
Please see the small table below produced using XL 2007
Formula in C3:
In Excel 2000 (at least) all three formulas yield the correct result of 26 days.
Is this a known bug with DATEDIF in XL 2007?
More to the point, is there an alternative formula that will give the equivalent (but correct!) output to the one in C3 in the example?
Cell Formulas | ||
---|---|---|
Range | Formula | |
A3 | A3 | =B1-A1 |
B3 | B3 | =DATEDIF(A1,B1,"d") |
Formula in C3:
Excel Formula:
=DATEDIF(A1,B1,"y") & " Years " & DATEDIF(A1,B1,"ym") & " Months " & DATEDIF(A1,B1,"md") & " Days"
In Excel 2000 (at least) all three formulas yield the correct result of 26 days.
Is this a known bug with DATEDIF in XL 2007?
More to the point, is there an alternative formula that will give the equivalent (but correct!) output to the one in C3 in the example?
Last edited by a moderator: