ExcelTip.com
ExcelTip.com
Account Icon Account Icon Account Icon
Google Exceltip.com
JOIN OUR NEWSLETTER
  and receive for joining:
Free eBook Learn More!
Free Excel ADD-IN
Free Weekly Excel Tip
4 e-books in cd-rom
F1 Formulas & Functions
F1 Formulas & Functions
F1 EXCEL
F1 eBook (Spanish)
F1 EXCEL
Financial Statements.xls
 

» Calculating Differences Between Dates
CATEGORY: Excel Dates
To calculate the difference between dates:

Use the DATEDIF function. The results of the calculation are displayed as days, full months, and full years.

Note: The DATEDIF function is not included in the Insert Function dialog box.


Screenshot // Calculating Differences Between Dates

Calculating Differences Between Dates
Rate this tip
12 34 5
  RATING: 3.44
  VIEWS: 97240

READER COMMENTS (view all comments)


Excellent
Visha wrote on December 31, 1969 19:00 EST
Hi, this tip is really useful. I got result in few seconds. description of the function and the example shows exactly what we want.

Thk u so much

Inverse of this function
Dennis wrote on December 31, 1969 19:00 EST
Is it possible to get the inverse of this done?
I have a sheet in which i have a project divided into component parts. I know how much time each part will take. Accordingly the timelines have been assigned. if and when any one date is changed, i don't want to have to change all the timelines again. just adding the days required to each date will not be enough since i have no way of excluding saturdays and sundays. is there any way i can do that in excel 2000?
Negative Months
KL wrote on December 31, 1969 19:00 EST
I would like to calculate Baseline finish vs Actual Finish on a project. Currently, I have the calculation:

=IF(F4<E4,(DATEDIF(F4,E4,"m")),(DATEDIF(F4,E4,"m")*(-1)))

This is not working. The main problem I have is that if it finishes early it will not return a negative # of months.

Is this possible to automate?
Negative Months
KL wrote on December 31, 1969 19:00 EST
I would like to calculate Baseline finish vs Actual Finish on a project. Currently, I have the calculation:

=IF(F4<E4,(DATEDIF(F4,E4,"m")),(DATEDIF(F4,E4,"m")*(-1)))

This is not working. The main problem I have is that if it finishes early it will not return a negative # of months.

Is this possible to automate?
After a long period of searching
Mahesh Guptha wrote on December 31, 1969 19:00 EST
I am searching to know the date formulas and difference between dates from the past one month. Now i got this. Thank you.
mahesh_guptha@sify.com
Converting Rs.(Number) to Words
Mukesh K Agarwal wrote on December 31, 1969 19:00 EST
Hi,

Is ther any formula to convert number to text Ex: Rs.100/- to Rs.One Hundred .I tried using BAHTEXT but the result is displayed in Thai.

Pl mail back to mukesh_ccu@hotmail.com
networkdays
snigdha wrote on December 31, 1969 19:00 EST
networkdays function calculates the present day as the working day. Is there a way around it ??
Converting Rs.(Number) to Words
KK wrote on December 31, 1969 19:00 EST
Very simple. Use NUMTOINDTEXT
PROBLEM WITH DATES
Luna wrote on December 31, 1969 19:00 EST
ANYONE KNOWS A WAY TO CALCULATE THE TRANSCURRED DAYS IN A PROJECT THAT DEPENDS IN A DURATION OF A PROCESS AND THE START/END DATE?

THANKS!



REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

Writing Excel Macros with VBA, 2nd Edition

Special Edition Using Microsoft Word 2002

Microsoft Access Version 2002 Step by Step

Rich Dad's Guide to Investing: What the Rich Invest in, That the Poor and the Middle Class Do Not!

H&R Block's Just Plain Smart(tm) Tax Planning Advisor: A year-round approach to lowering your taxes this year, next year and beyond

Fish! A Remarkable Way to Boost Morale and Improve Results

RELATED MICROSOFT EXCEL TIPS


Convert PDF Files to Excel






Excel VBA books
Accounting books
Business Plans
MS Office books
Taxes books

VIEW ALL BOOKS


  Advertise With Us                               

Tips

Add-In in VBA | Applications - Word, Outlook in VBA | Array Formulas | Cells, Ranges, Rows, and Columns in VBA | Counting | Custom Functions | Custom Functions in VBA | Database Formulas | Database in VBA | Date & Time Formulas | Date & Time in VBA | Events in VBA | Excel 2003 | Excel Chart | Excel Consolidating | Excel Counting | Excel Custom Functions using VBA | Excel Customizing | Excel Data | Excel Dates | Excel Editing | Excel Files | Excel Filter | Excel Format | Excel Formula | Excel General | Excel Grouping and Outlining | Excel Importing Text Files | Excel Information | Excel Keyboard Shortcuts | Excel Loan Formulas | Excel Macros - VBA | Excel Pivot Tables | Excel Printing | Excel Range Name | Excel Security - Protection | Excel Sorting | Excel Style | Excel Subtotals | Excel Summing | Excel Text | Excel Time | Excel Tools | Excel Worksheet, Workbook | Files, Workbook, and Worksheets in VBA | Financial Formulas | Formating in VBA | General Topics in VBA | Import and Export in VBA | Information Formulas | Keyboard & Other Shortcuts in VBA | Keyboard Formula Shortcuts | Links between Worksheet and Workbooks | Links in VBA | Logical Formulas | Lookup Formulas | Mail - Send and Receive in VBA | Menus, Toolbars, Status bar in VBA | Modules, Class Modules in VBA | Other Q&A Formulas | Printing in VBA | Protecting in VBA | Summing | Text Formulas | User Forms, Input boxes in VBA | Using Loops | Working with Formulas |

Tips by Version

Microsoft Excel 97 | Microsoft Excel 2000 | Microsoft Excel 2002 | All Microsoft Excel Versions | New in Excel 2002 | New in Excel 2003 - Office 11

Website

Home | Tip of Hour | Recommended Tips | Most Viewed Tips | Tips by Version | Submit a Tip | My Tips
Microsoft Excel Tutorials | Excel Links | Write for Us | About Us | Search Results | Tip Archives | Excel Forum | Excel Forum Archives

Excel Book

Excel 97 Book | Excel 2000 Book | Excel 2002 Book | Excel XP Book | Book Store

Terms and Conditions of use
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Copyright © 2003 ExcelTip.com
Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation
Site Developed By: Varien