#1   Report Post  
Posted to microsoft.public.excel.newusers
Larry
 
Posts: n/a
Default count days

I need a formula to count days between two dates
(in cells) that would include leap years

any help ??

Thanks Larry


  #2   Report Post  
Posted to microsoft.public.excel.newusers
Marcelo
 
Posts: n/a
Default count days

Hi Larry you could use the function DATADIFF as

=DATADIF(initial_date,final_date,"type_of_differen e")

type of difference could be:
"Y" - # of completed years between dates
"M" - # of completed months bt dates
"D" - # of completed days bt dates
"MD" - Months and Years are ignorated
"YD" - Days and Years are ignorated

hope it helps

regards from Brazil
Marcelo



"Larry" escreveu:

I need a formula to count days between two dates
(in cells) that would include leap years

any help ??

Thanks Larry



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Marcelo
 
Posts: n/a
Default count days

sorry the correct function is DATEDIF....

I type it on Portuguese sorry



"Marcelo" escreveu:

Hi Larry you could use the function DATADIFF as

=DATADIF(initial_date,final_date,"type_of_differen e")

type of difference could be:
"Y" - # of completed years between dates
"M" - # of completed months bt dates
"D" - # of completed days bt dates
"MD" - Months and Years are ignorated
"YD" - Days and Years are ignorated

hope it helps

regards from Brazil
Marcelo



"Larry" escreveu:

I need a formula to count days between two dates
(in cells) that would include leap years

any help ??

Thanks Larry



  #4   Report Post  
Posted to microsoft.public.excel.newusers
Pete_UK
 
Posts: n/a
Default count days

If you just want the answer in days, then you only need to subtract one
from the other and format the cell as Number with zero decimal places,
i.e.:

=B1 - A1

if B1 contains the later date and A1 the earlier date.

Hope this helps.

Pete

Marcelo wrote:
sorry the correct function is DATEDIF....

I type it on Portuguese sorry



"Marcelo" escreveu:

Hi Larry you could use the function DATADIFF as

=DATADIF(initial_date,final_date,"type_of_differen e")

type of difference could be:
"Y" - # of completed years between dates
"M" - # of completed months bt dates
"D" - # of completed days bt dates
"MD" - Months and Years are ignorated
"YD" - Days and Years are ignorated

hope it helps

regards from Brazil
Marcelo



"Larry" escreveu:

I need a formula to count days between two dates
(in cells) that would include leap years

any help ??

Thanks Larry




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
Calendar Days and Option Buttons Andy Excel Discussion (Misc queries) 0 January 10th 06 09:50 PM
Formula to count number of days in range which are less than today zooming Excel Worksheet Functions 2 June 21st 05 04:01 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
how do I make a function to count days? khamsta Excel Worksheet Functions 2 November 1st 04 10:53 PM


All times are GMT +1. The time now is 09:42 PM.

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"