Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Philippe_L
 
Posts: n/a
Default Bug in days360 function

Hi,

If you enter days360(A1,A2) where A1 is April, 18, 2006 and A2 is
March, 31, 2007 you get correctly 343 days.

BUT if you enter it the opposite way, i.e. days360(A2,A1), you get -342
days.

My HP calculator disagrees with this, and gives logicaly 343 and -343.

Any explanation?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Bug in days360 function

This is not a bug, its a "featu

From Help:

FALSE or omitted (the third parameter)

U.S. (NASD) method. If the starting date is the 31st of a month, it becomes
equal to the 30th of the same month. If the ending date is the 31st of a
month and the starting date is earlier than the 30th of a month, the ending
date becomes equal to the 1st of the next month; otherwise the ending date
becomes equal to the 30th of the same month.

--
Gary''s Student


"Philippe_L" wrote:

Hi,

If you enter days360(A1,A2) where A1 is April, 18, 2006 and A2 is
March, 31, 2007 you get correctly 343 days.

BUT if you enter it the opposite way, i.e. days360(A2,A1), you get -342
days.

My HP calculator disagrees with this, and gives logicaly 343 and -343.

Any explanation?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Philippe_L
 
Posts: n/a
Default Bug in days360 function

I see.

That's odd anyway, and I would have expected the default behavior to
give the same number of days in both ways, and only to use this strange
rule when specified.

It' also weird that the HP calculator gives 343 days in both cases,
since when you specify true in the third parameter in Excel you get 342
days in both cases. I am wondering what rule HP is following...

Anyway, thanks very much for your reply.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Bug in days360 function

You are very welcome.


b.t.w you might want to give a look at DATEDIF()
--
Gary's Student


"Philippe_L" wrote:

I see.

That's odd anyway, and I would have expected the default behavior to
give the same number of days in both ways, and only to use this strange
rule when specified.

It' also weird that the HP calculator gives 343 days in both cases,
since when you specify true in the third parameter in Excel you get 342
days in both cases. I am wondering what rule HP is following...

Anyway, thanks very much for your reply.


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
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 05:17 AM.

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

About Us

"It's about Microsoft Excel"