![]() |
Leading the way in Microsoft Office Development |
| Home | | | Excel | | | Word | | | PowerPoint | | | Consultancy | | | Feedback | | | Contact |
| Microsoft Excel > Functions > Date and Time > DATEDIF |
DATEDIF(start_date, end_date, unit) |
| Returns the number of units between two dates. |
| start_date | The date that represents the starting date of the period. | |
| end_date | The date that represents the finishing date of the period. | |
| unit | The type of information you want returned: "Y" = number of complete years "M" = number of complete months "D" = number of days "MD" = difference between days in "start_date" and "end_date" "YM" = difference between the months in "start_date" and "end_date" "YD" = difference between the days of "start_date" and "end_date" |
| REMARKS |
| This function is only available if you have the Analysis ToolPak add-in installed. | ||
| This function does not appear in the (Insert > Function) dialog box, but it does exist. |
| EXAMPLES |
|
| Functions - D | Index - D | Dates & Times |
| Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved. | Top |