days360

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
ADVERTISEMENT
Under this function the last day of the month becomes the 30th regardless of how many days there are actually.

28-30 = -2.

This function is DAYS360(start_date,end_date,method). You should use =DAYS360("2/28/05","2/28/05",TRUE).

See help for more info.
 
Upvote 0
That looks to me like a glitch. The explanation might be that:

"Syntax

DAYS360(start_date,end_date,method)

Start_date, end_date are the two dates between which you want to know the number of days. If start_date occurs after end_date, DAYS360 returns a negative number. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text."

It seems the function reads a 30-day month from the first date and that is 2 days after the second date, hence -2.

The following results also in -2...

=DAYS360("2/29/04"+0,"2/28/04"+0)
 
Upvote 0

Forum statistics

Threads
1,196,487
Messages
6,015,497
Members
441,898
Latest member
kofafa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top