Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default date() function error

In office pro 2003, excel the dates between function mis calculates i.e.
creating a amortization for simple interest using the days() between
function mis-calculates the number of days. i.e. aug 10, 2006 to sept 5, 2006
is 27 days, date() function reports 25 days, causing interest and principle
to be wrong and ending balance to be incorrect.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default date() function error

AFAIK there is no DAYS() function in Excel. You just subtract one date from the other to get the number of days between them.
Maybe you mean DAYS360() function? 360 Days calculations have their own set of rules. 25 Seems to be the correct answer for your
example.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

" wrote in message
...
| In office pro 2003, excel the dates between function mis calculates i.e.
| creating a amortization for simple interest using the days() between
| function mis-calculates the number of days. i.e. aug 10, 2006 to sept 5, 2006
| is 27 days, date() function reports 25 days, causing interest and principle
| to be wrong and ending balance to be incorrect.
|
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default date() function error

this will give you the correct count

=DATE(YEAR(I1412),MONTH(I1412),DAY(I1412))-DATE(YEAR(H1412),MONTH(H1412),DAY(H1412))+1

the problem is the time of day is probably different in the two dates
causing different answers. My correction will strip of the hours and minutes
from the time.= getting you the reference to the same point in time.

I don't know if the answer should be 26 or 27. Is the difference beteen
today and tomorrow 1 or 2. Should you include from mightnight today until
midnight tomorrow, or are you including from noon today until noon tomorrow.

" wrote:

In office pro 2003, excel the dates between function mis calculates i.e.
creating a amortization for simple interest using the days() between
function mis-calculates the number of days. i.e. aug 10, 2006 to sept 5, 2006
is 27 days, date() function reports 25 days, causing interest and principle
to be wrong and ending balance to be incorrect.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default date() function error

Assuming that I1412 and H1412 both contain dates, that formula will
always return the same value as

= I1412 - H1412 + 1

In article ,
Joel wrote:

this will give you the correct count

=DATE(YEAR(I1412),MONTH(I1412),DAY(I1412))-DATE(YEAR(H1412),MONTH(H1412),DAY(H
1412))+1

the problem is the time of day is probably different in the two dates
causing different answers. My correction will strip of the hours and minutes
from the time.= getting you the reference to the same point in time.

I don't know if the answer should be 26 or 27. Is the difference beteen
today and tomorrow 1 or 2. Should you include from mightnight today until
midnight tomorrow, or are you including from noon today until noon tomorrow.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default date() function error

I think the function does whatt the help menu says. The help on the
days360() function says the following

Returns the number of days between two dates based on a 360-day year (twelve
30-day months), which is used in some accounting calculations. Use this
function to help compute payments if your accounting system is based on
twelve 30-day months.


for the 3rd parameter = method.

FALSE or omitted 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.
TRUE European method. Starting dates and ending dates that occur on the 31st
of a month become equal to the 30th of the same month.



" wrote:

In office pro 2003, excel the dates between function mis calculates i.e.
creating a amortization for simple interest using the days() between
function mis-calculates the number of days. i.e. aug 10, 2006 to sept 5, 2006
is 27 days, date() function reports 25 days, causing interest and principle
to be wrong and ending balance to be incorrect.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default date() function error



"Niek Otten" wrote:

AFAIK there is no DAYS() function in Excel. You just subtract one date from the other to get the number of days between them.
Maybe you mean DAYS360() function? 360 Days calculations have their own set of rules. 25 Seems to be the correct answer for your
example.

-- so are you saying this function does not count sat & sun?
Kind regards,

Niek Otten
Microsoft MVP - Excel

" wrote in message
...
| In office pro 2003, excel the dates between function mis calculates i.e.
| creating a amortization for simple interest using the days() between
| function mis-calculates the number of days. i.e. aug 10, 2006 to sept 5, 2006
| is 27 days, date() function reports 25 days, causing interest and principle
| to be wrong and ending balance to be incorrect.
|
|



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default date() function error

No. DAYS360() assumes the year is divided into 12 months of 30 days, and
calculates accordingly.

In article ,
BobM wrote:

-- so are you saying this function does not count sat & sun?

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
MAX figure within a date range as a function of today()'s date irvine79 Excel Worksheet Functions 6 February 20th 07 03:28 PM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM
Date Error - HELP! Mikey Moe Excel Discussion (Misc queries) 1 February 6th 05 02:43 AM


All times are GMT +1. The time now is 06:08 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"