Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default INEXPLICABLE FORMULA RESULT

Consider the following formula:

=(Date1+1094)-Date2

If I run that formula using the following dates:

(02/25/2005+1094)-02/25/2008, the answer is -1.00.

If I run the same formula with these dates:

(04/16/2005+1094)-04/16/2008, the answer is -2.00!

HELP!! How can this happen?!

In case you're wondering, 2005 was NOT a leap year (2004 and 2008 were).
--
William
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default INEXPLICABLE FORMULA RESULT

Exactly, so the second includes an extra day for 2008.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"William" wrote in message
...
Consider the following formula:

=(Date1+1094)-Date2

If I run that formula using the following dates:

(02/25/2005+1094)-02/25/2008, the answer is -1.00.

If I run the same formula with these dates:

(04/16/2005+1094)-04/16/2008, the answer is -2.00!

HELP!! How can this happen?!

In case you're wondering, 2005 was NOT a leap year (2004 and 2008 were).
--
William



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 209
Default INEXPLICABLE FORMULA RESULT

add 365 x 3 yrs = 1095
since you are using 1094, you will get -1
--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"William" wrote:

Consider the following formula:

=(Date1+1094)-Date2

If I run that formula using the following dates:

(02/25/2005+1094)-02/25/2008, the answer is -1.00.

If I run the same formula with these dates:

(04/16/2005+1094)-04/16/2008, the answer is -2.00!

HELP!! How can this happen?!

In case you're wondering, 2005 was NOT a leap year (2004 and 2008 were).
--
William

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default INEXPLICABLE FORMULA RESULT

You've answered the question yourself. 2008 was a leap year.

From 25 Feb 2005 to 25 Feb 2008 is 1095 days (3 * 365)
From 16 Apr 2005 to 16 Apr 2008 is 1096 days (3 * 365, + leap year day in
2008)
--
David Biddulph

"William" wrote in message
...
Consider the following formula:

=(Date1+1094)-Date2

If I run that formula using the following dates:

(02/25/2005+1094)-02/25/2008, the answer is -1.00.

If I run the same formula with these dates:

(04/16/2005+1094)-04/16/2008, the answer is -2.00!

HELP!! How can this happen?!

In case you're wondering, 2005 was NOT a leap year (2004 and 2008 were).
--
William



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default INEXPLICABLE FORMULA RESULT

You are correct, 2008 was a leap year.....

therefore, on your second formula to go from 4/16/05 to 4/16/08 takes 1
'extra' day (because of Feb 29, 2008, which does not fall in the range of
your first formula). Therefore, because of the 1 extra day, it is a result of
-2, instead of -1.
--
John C


"William" wrote:

Consider the following formula:

=(Date1+1094)-Date2

If I run that formula using the following dates:

(02/25/2005+1094)-02/25/2008, the answer is -1.00.

If I run the same formula with these dates:

(04/16/2005+1094)-04/16/2008, the answer is -2.00!

HELP!! How can this happen?!

In case you're wondering, 2005 was NOT a leap year (2004 and 2008 were).
--
William



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default INEXPLICABLE FORMULA RESULT

Thanks, everyone. Duuuh, "2008 was a leap year" . . . !
--
William


"David Biddulph" wrote:

You've answered the question yourself. 2008 was a leap year.

From 25 Feb 2005 to 25 Feb 2008 is 1095 days (3 * 365)
From 16 Apr 2005 to 16 Apr 2008 is 1096 days (3 * 365, + leap year day in
2008)
--
David Biddulph

"William" wrote in message
...
Consider the following formula:

=(Date1+1094)-Date2

If I run that formula using the following dates:

(02/25/2005+1094)-02/25/2008, the answer is -1.00.

If I run the same formula with these dates:

(04/16/2005+1094)-04/16/2008, the answer is -2.00!

HELP!! How can this happen?!

In case you're wondering, 2005 was NOT a leap year (2004 and 2008 were).
--
William




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default INEXPLICABLE FORMULA RESULT

yes 2008 is


"William" wrote:

Thanks, everyone. Duuuh, "2008 was a leap year" . . . !
--
William


"David Biddulph" wrote:

You've answered the question yourself. 2008 was a leap year.

From 25 Feb 2005 to 25 Feb 2008 is 1095 days (3 * 365)
From 16 Apr 2005 to 16 Apr 2008 is 1096 days (3 * 365, + leap year day in
2008)
--
David Biddulph

"William" wrote in message
...
Consider the following formula:

=(Date1+1094)-Date2

If I run that formula using the following dates:

(02/25/2005+1094)-02/25/2008, the answer is -1.00.

If I run the same formula with these dates:

(04/16/2005+1094)-04/16/2008, the answer is -2.00!

HELP!! How can this happen?!

In case you're wondering, 2005 was NOT a leap year (2004 and 2008 were).
--
William




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula result does not match displayed result lothar Excel Worksheet Functions 1 June 23rd 08 05:05 AM
Inexplicable VBA errors in formulas Dallman Ross Excel Discussion (Misc queries) 7 August 11th 07 12:32 AM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM
Nested IF AND OR function Inexplicable error MichaelC Excel Worksheet Functions 7 August 22nd 05 10:46 PM


All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"