close

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?This is not a bug, its a quot;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 Studentquot;Philippe_Lquot; wrote:

gt; Hi,
gt;
gt; If you enter days360(A1,A2) where A1 is April, 18, 2006 and A2 is
gt; March, 31, 2007 you get correctly 343 days.
gt;
gt; BUT if you enter it the opposite way, i.e. days360(A2,A1), you get -342
gt; days.
gt;
gt; My HP calculator disagrees with this, and gives logicaly 343 and -343.
gt;
gt; Any explanation?
gt;
gt;

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.You are very welcome.b.t.w you might want to give a look at DATEDIF()
--
Gary's Studentquot;Philippe_Lquot; wrote:

gt; I see.
gt;
gt; That's odd anyway, and I would have expected the default behavior to
gt; give the same number of days in both ways, and only to use this strange
gt; rule when specified.
gt;
gt; It' also weird that the HP calculator gives 343 days in both cases,
gt; since when you specify true in the third parameter in Excel you get 342
gt; days in both cases. I am wondering what rule HP is following...
gt;
gt; Anyway, thanks very much for your reply.
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()