599CD.com New Facebook Account   Collapse Menus
 
 
NEW Courses - Excel 2007 Level 4 & 5, Access Security dismiss
 
   
 

What's New?  |  Courses  |  Theater  |  Demo  |  Tips  |  Blog  |  Forums  |  Search  |  Help  |  Order

 
What do you want to learn today? 
 
New Tips Added Weekly. Get Notified of New Tips & Tricks.
 
     
 
Tips & Tricks
   

  Access   Excel   Word   Windows   FrontPage   Hardware   Misc

 
 
Adding Dates & Times in Excel
 
Q: I'm using Microsoft Excel 2003. How can I take a date, say 12/10/2007, and add 2 months to it?
 
A: The simple way to add dates and times is to simply add values of 1 for each day. For example, if you have 1/1/2008 in cell A1, then you could say =A1+60 in cell B1 to add roughly two months to that date. This is good enough for most cases, and it works fine for weeks (adding 7 days).

You can do the same thing with times if you realize that an hour is 1/24th of a day. If you want to add 6 hours to a time (1/4 of a day) then you could say =A1+(1/4). If you want to add 5 hours, just say =A1+(5/24).

Now you just have to format the cell as a TIME and you get the right answer.

Now like I said, this is usually good enough for most cases. But what about when you really need to be exact? Well, you can use Excel's DATE and TIME functions for more exact date arithmetic. For example. Let's say you need to add 2 months again. This time, however, the start date is 3/1/08. Adding 60 gives you the wrong date.

So now we need something a little more advanced. Try using the DATE function: =DATE(YEAR(A1), MONTH(A1)+2, DAY(A1))

That adds exactly 2 months to the date in A1. You can do the same trick to add years or days. For example, this will add 5 years, 6 months, and 10 days to the date in A1: =DATE(YEAR(A1)+5, MONTH(A1)+6, DAY(A1))+10

Now adding TIME works just a little bit differently. If you want to add 6 hours to a cell use the TIME function like this: =A1+TIME(6,0,0)

Yes, the value comes up with a strange 1/0/1900 20:00 at first, but if you just format the cell as a TIME value, it's correct. The TIME function basically is =TIME(hours, minutes, seconds). So if you want to add 2 hours, 15 minutes, 10 seconds, you would say: =A1+TIME(2,15,10).

I cover dates and time in much more detail in my Excel 232 tutorial. I'll also show you how to calculate the difference between two dates or times, and teach you more about how dates and times are stored internally inside Excel.

 

Huge Discounts Available
When you purchase multiple classes together
Huge savings up to 50% off! Order Now.
 

You may want to read these articles from the 599CD Blog:

 

 

Need Help
 
Do you have questions about Word, Excel, Access, Web Design, or computers in general? Just ask us anything you'd like. Click here for assistance.
 

Get Free Tips & Tricks
 

Join our mailing list today and get information on our Free Tips & Tricks Newsletter including free video tutorials, eBooks, live seminars, and more.

Email:
Name:
Type in the word to the left:
 
Your email will be kept 100% safe and will never be given to 3rd parties.
 


CLICK HERE for a FREE lesson



Order your first 599CD course now.
Your Satisfaction is Guaranteed!


Subscribe to our RSS FeedWhat's This?

599CD on Facebook  599CD on Twitter  Subscribe to RSS Feed  Add to Live Bookmarks  Add to My AOL  Add to MyYahoo  Add to Google Reader or Homepage    hide help

599CD Home   |   Learn More   |   What's New?   |   Contact Us   |   Free Demo   |   FAQs   |   Order Now   |   Affiliate Program   |   TechHelp   |   MYOLP   |   Jobs   |   Downloads   |   Handbooks  (Text)   |    Mailing List   |   Lost Passwords   |   Referral Program   |   Online Poll   |   Corporate, Educational, Government, Non-Profit Sales   |   Message Forums   |   Testimonials   |   Privacy Policy   |   Free Gift CDs   |   Tips & Tricks