Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-12-2010, 10:04 PM
SmokingMan's Avatar
SmokingMan SmokingMan is offline Need a date formula Windows 7 Need a date formula Office 2007
Novice
 
Join Date: Aug 2010
Location: Indiana, USA
Posts: 5
SmokingMan is on a distinguished road
Default

Assuming cell A1(12/3/68) and B1(12/31/10). Another way would be that in the target cell enter =(B1-A1)/365. You can then format the target cell as a number with no decimal points and it will give you the same answer of 42. Either way gives you the same answer.

Excel stores the date as a number so you can use the same math with dates as you do with numbers. Format a cell as a number and type in a date. You will see how Excel stores it. It counts the days from 1/1/1900 to come up with the current date. For example today's date (8/12/10) is stored as 40402.

I hope this wasn't too much information, but it gives you an idea how Excel works with dates.


Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
date in forms gilgold Word 2 05-28-2010 01:19 PM
Need a date formula Julian Date windseaker Excel 1 02-14-2010 01:44 AM
new appointment date always reverts back to today's date msills Outlook 0 08-24-2007 08:57 AM
Date format always interpreted as a formula Butch Jackman Excel 1 02-14-2006 11:27 AM
Need a date formula Imported message date change to today's date promark Outlook 1 12-23-2005 07:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft