Computing.Net > Forums > Office Software > Date Formula in Excel 2002

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Date Formula in Excel 2002

Reply to Message Icon

Name: Mark
Date: October 14, 2003 at 07:54:56 Pacific
OS: winxp
CPU/Ram: 512 ram
Comment:

Please help. I want to use a date formula to find the difference between 2 dates. I know the formula but, when I apply it to a worksheet, a number appears '37924'Until a date is placed in the 2nd colume. This throws off my numbers in a Master Tracking sheet I have. Is there a way to apply this and lose the "37924" that keeps comming up?
I.E.
ertw rtw/ld rtw/fd days saved.
10/16/03 formula=b2+b3-b1

Thank you in advance!



Sponsored Link
Ads by Google

Response Number 1
Name: Stuart
Date: October 14, 2003 at 14:45:54 Pacific
Reply:

I dont understand your formula. It appaear to be adding two values and subtracting a third.

To find the difference between two dates it is just date1 - date2. The difference will be the number of days. You can then apply various formlas to convert to months, weeks or years. It should be remembered that date are stored internally as a floating point number. The part before the decimal point is the number of days since 31 Dec 1899 or something thereabouts. The part after the decimal nymber is the number of seconds since midnight. So date maipulation is no different than any other type of number. The only difference is in the formating.

The Excel Help files contain loads of information on manipulating dates.

Stuart


0

Response Number 2
Name: Mark
Date: October 15, 2003 at 06:09:33 Pacific
Reply:

ertw= estimated return to work. This colume will most always have a date to start a case.
ertw/ld= estimated return to work light duty. This colume may not get a date, or, will be awhile( weeks ) before it does.
ertw/fd=estimated return to work full duty. This colume may not get a date, or, will be awhile( weeks ) before it does.
Days saved= ertw/ld or ertw/fd minus the ertw.
What I amtrying to do is create a date formula so that the days saved autocalulates when a date is inserted in the ertw/ld or ertw/fd. But, when I put my formula in the days saved colume, the date serial number appears, throwing off the actual total. I just wanted to know if there was a way to format somehow so that the date serial does not appear. Thank you in advance.


0

Response Number 3
Name: hoi polloi
Date: October 16, 2003 at 23:57:17 Pacific
Reply:

Mark

I know what you mean.

I tried it with:

A1 ertw/ld Cell set as Date xx/xx/xx

B1 ertw/fd Cell set as Date xx/xx/xx

C1 ertw Cell set as Date xx/xx/xx

D1 days saved ld Cell set as Number with 0 decimal places

E1 days saved fd Cell set as Number with 0 decimal places


When dates were put in the cells it showed a negative number in the days saved columns.
But if a cell was empty is showed the date serial number, which starts from 01 January 1900,
at the behest of Microsoft.

A simple way is to leave the cells empty until you have al the information, or copy the date from the ertw cell so days saved cell shows zero until a new date is entered.

Or, you can narrow the column width until three asterisks are visible instead of the date serial number. That will give you ability to show days up to three characters

or, you can use the IF function to display zero or something else in certain circumstances.



0

Response Number 4
Name: Mark
Date: October 17, 2003 at 08:37:47 Pacific
Reply:

hoi polloi
Thank you for your reply. How can I use the
"IF" function on this problem? Please reply.
Thank you in advance. I would like to set an argument where any value < 0 is not counted.
Thanks you again in advance.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Date Formula in Excel 2002

Excel Date Formula - Help?! ;( www.computing.net/answers/office/excel-date-formula-help-/1243.html

Two Different dates in Excel 2000 www.computing.net/answers/office/two-different-dates-in-excel-2000/3442.html

excel formula error-Excel 2002 www.computing.net/answers/office/excel-formula-errorexcel-2002/6005.html