Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jv. Jv. is offline
external usenet poster
 
Posts: 1
Default dato calkulations

Hi
I need to count time in days/montht/years from one period to another.
I have tried to do a simple calkulation like 15-01-2001 minus 01-01-2000,
but problem is, that excell does not have a zero month and with some
calkulations makes plus one month. It also makes some mistakes in
calkulations of days...
Does somebody knows how to solve it?

Thank you :-)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default dato calkulations

Hi Jv,

take a look at DATADIF function help.

=DATADIF(INITIALDATE,FINALDATE,"X")

X could be:

D = days between both dates
M = Months between both dates
Y = Years between both dates
MD = difference between both dates but, months and years are ignorated
YD = difference between both dates but, days and years are ignorated

hth
regards from Brazil
Marcelo

"Jv." escreveu:

Hi
I need to count time in days/montht/years from one period to another.
I have tried to do a simple calkulation like 15-01-2001 minus 01-01-2000,
but problem is, that excell does not have a zero month and with some
calkulations makes plus one month. It also makes some mistakes in
calkulations of days...
Does somebody knows how to solve it?

Thank you :-)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default dato calkulations

With the earlier date in A1, and the later date in A2:

=DATEDIF(A1,A2,"y") & " years, " & DATEDIF(A1,A2,"ym") & " months, " & DATEDIF(A1,A2,"md") & " days"

HTH,
Bernie
MS Excel MVP


"Jv." wrote in message
...
Hi
I need to count time in days/montht/years from one period to another.
I have tried to do a simple calkulation like 15-01-2001 minus 01-01-2000,
but problem is, that excell does not have a zero month and with some
calkulations makes plus one month. It also makes some mistakes in
calkulations of days...
Does somebody knows how to solve it?

Thank you :-)



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
Formatering af Dato m. klokkeslæt som et tal - speciel Vagn Dam Jensen Excel Worksheet Functions 0 November 16th 05 09:55 AM


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