The DATEDIFF function is a built-in function in Excel that is categorized as a Date/Time Function.It can be used as a VBA function (VBA) in Excel. Home Excel 2003 Date Calculate the Number of Days Between Dates Search MS Office A-Z | Search Web Pages/ Design A-Z Calculate the Number of Days Between Dates. To get the number of days, weeks or years between two dates in Excel, use the DATEDIF function.

Then the

If the age is 10 and under, give the result 200.And the second part of your formula, you are concatenating a space at the end of your result:This space at the end is probably what is causing your problem, as your formula is not returning a pure number, but rather the age with a space concatenated at the end.This formula will return either 250 or 200 depending on the age and then concatenate a space at the end.

By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Excel functions, Formula, Charts, Formatting creating excel dashboard & othersExcel functions, Formula, Charts, Formatting creating excel dashboard & othersYou can download this DATEDIF Function Excel Template here – All in One Excel VBA Bundle (35 Courses with Projects)35+ Courses | 120+ Hours | Full Lifetime Access | Certificate of CompletionAll in One Excel VBA Bundle (35 Courses with Projects) The days and years of the dates are ignoredThe difference between the days of start_date and end_date. This function is available in all versions of Excel since at least version 5/95, but is documented in the help file only for Excel 2000. For all other languages, the english function name is used. Excel Versions Availability Category; Excel (Office 365) Yes: Hidden: Excel 2013: Yes: Hidden: Excel 2010: Yes: Hidden: Excel 2007: Yes: Hidden: Excel 2003… For reasons unknown, it is only documented in Excel 2000, but you can use it in your formulas in all Excel … Warnung: Excel stellt die Funktion DATEDIF bereit, um ältere Arbeitsmappen aus Lotus 1-2-3 zu unterstützen. The english function name DATEDIF() has been translated into 15 languages. Please see the known issues section of this article for further details. This UDF accepts three parameters: Start_Date: The days from which the period begins. Show Printable Version; Subscribe to this Thread… Mark this thread as unsolved… Rate This Thread. 1.

DATEDIF() is a Microsoft unsupported function available in most versions of Excel. Formulas from all approaches above applied to test data set and copied down.Thanks for your feedback, it helps us improve the site.Thanks for your feedback, it helps us improve the site. This site in other languages Below is a list of valid interval values.Let's look at some Excel DATEDIF function examples and explore how to use the DATEDIF function as a worksheet function in Microsoft Excel:Based on the Excel spreadsheet above, the following DATEDIF examples would return:The result works fine. Warning: Excel provides the DATEDIF function in order to support older workbooks from Lotus 1-2-3. LinkBack URL; About LinkBacks; Thread Tools. The DATEDIF (Date + Dif) function is a "compatibility" function that comes from Lotus 1-2-3.

Availability. Calculates the number of days, months, or years between two dates.A date that represents the first, or starting date of a given period. The DATEDIF function has three arguments. In A2 use the DATE …

Do you see TRUE returned as a result?Thanks for your feedback, it helps us improve the site.As an alternative to the suggestions of Messrs HTH and Kevin, and that of Ms Teylyn, you could also try:=IF(OR(ISBLANK(A2),ISBLANK(B2)),0,DATEDIF(A2,B2,"d")/7)This still won't work for invalid date entries however.Note also that DATEDIF gives an error if the first date is later than the second date - the earlier date must come first.Thanks for your feedback, it helps us improve the site.This is fun. LinkBack. It might be that it has been dropped from 2010, hence you will get #NAME? How do i get excel to show 0 if only one date is entered into either column A or B? MVP Die Funktion DATEDIF kann in bestimmten Szenarien zu falschen Berechnungsergebnissen führen. End_Date: It is … As you saw above, the DATEDIF function calculates the difference between a start date and an end date. MVP You can follow the question or vote as helpful, but you cannot reply to this thread.