#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default how do you

How do you work out how many days there are between to dates using a formula

E.g.
11 march 1973
18 Feb. 1977


Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default how do you

hi
subtact the larger date from the smaller date. format as general.

regards
FSt1

"MillyD" wrote:

How do you work out how many days there are between to dates using a formula

E.g.
11 march 1973
18 Feb. 1977


Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default how do you

You can just subtract the smaller (earlier) date from the later date.
But, imagine you had 1 Jan 2008 in A1 and 3 Jan 2008 in B1. The
formula B1-A1 will give you a result of 2, but if you want to include
the start and end dates then you will have to add one on. Similarly,
if you want to exclude the start and end dates you need to subtract 1:

=B1-A1-1

Hope this helps.

Pete

On Aug 14, 2:58*pm, "MillyD" wrote:
How do you work out how many days there are between to dates using a formula

E.g.
11 march 1973
18 Feb. 1977

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default how do you

You could also use the DATEDIF formula. =DATEDIF(Date1, Date2, Interval)

http://www.cpearson.com/excel/datedif.aspx



"MillyD" wrote:

How do you work out how many days there are between to dates using a formula

E.g.
11 march 1973
18 Feb. 1977


Thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default how do you

True, but =DATEDIF(A1,B1,"d") should be the same as the rather simpler
formula =B1-A1. The main problem with the latter is remembering to set the
format of the result cell to General or Number, not to Date.
--
David Biddulph

"Nate" wrote in message
...
You could also use the DATEDIF formula. =DATEDIF(Date1, Date2, Interval)

http://www.cpearson.com/excel/datedif.aspx



"MillyD" wrote:

How do you work out how many days there are between to dates using a
formula

E.g.
11 march 1973
18 Feb. 1977


Thanks





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



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