Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2011, 04:44 AM
Kimberly Kimberly is offline Date formatting Windows 7 64bit Date formatting Office 2010 64bit
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

In Excel for Windows, a date is a serial number, where 1=Jan 1, 1900.

2=Jan 2, 1900; 29=Jan 29, 1900; 8/10/2011=40765, etc.

This is the reason you can do math with dates and the answer will be in number of days. Try it... put your next birthday in a A1. Put today's date in A2. Create a formula =A1-A2. the answer is how many days til your next birthday. (If the answer looks like a date, just change the format to number.)

No matter how you type a date in a cell, no matter how you format it, the formula bar will show it as 1/5/2008. If it doesn't, then Excel doesn't recognize that it is a date, and that is a big big problem.

Type in the date however you find easiest to type and then format it the way you like to see it.

By the way, times are just fractions of dates... Today's date is 40,765. Today at noon will be 40,765.5
Reply With Quote
  #2  
Old 08-10-2011, 05:29 AM
Catalin.B Catalin.B is offline Date formatting Windows Vista Date formatting Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Sorry Kimberly, all you said is absolutely true, except this: " Create a formula =A1-A2. the answer is how many days til your next birthday."
The problem is that A1-A2 is a negative number, and the result is the age in days , and not how many days til your next birthday.

As for kjxavier problem, my guess is that the cell in which you have directly entered date as 01/05/2008 is formatted as text, and not as date, this is the reason excel says the dates are different.
You can solve the problem using in your comparrison formula to convert text to date:
=DATE(RIGHT(L16;4);MID(L16;4;2); LEFT(L16;2)) (-just replace L16 with referrence to other sheet) , and now, when you compare the date in this sheet with the result of the formula, will say they are the same...
Hope this solves your problem...
Reply With Quote
Reply

Tags
formatting



Similar Threads
Thread Thread Starter Forum Replies Last Post
Date formatting Date formatting kjxavier Excel 6 08-12-2011 05:46 AM
Date formatting Date Formatting in MS word 2007 Karthick Word 4 01-19-2010 05:54 AM
Date formatting Inserting Date, formatting to superscript and subscript louq Word 1 10-22-2009 09:29 AM
new appointment date always reverts back to today's date msills Outlook 0 08-24-2007 08:57 AM
Date formatting 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 01:10 PM.


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