#1   Report Post  
Posted to microsoft.public.excel.misc
Nad Nad is offline
external usenet poster
 
Posts: 20
Default Find the Duration

Hi,
How can i find the duration (No. of days) between two days.

ex. (10/20/2006 to 10/31/2006)

Thx & Regards,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Find the Duration

Hi

Just take the earlier data away from the later date.
="10/31/2006"-"10/20/2006"
or with dates in A1 10/20/2006 and B1 10/31/2006
=B1-A1

Add 1 to the result if you want to include the whole of the 20th and the
whole of the 31st.
Format the cell with your formula as FormatCellsGeneral.

--
Regards

Roger Govier


"Nad" wrote in message
...
Hi,
How can i find the duration (No. of days) between two days.

ex. (10/20/2006 to 10/31/2006)

Thx & Regards,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default Find the Duration

There is also an "undocumented" formula:
=DATEDIF(A1,B1,"d")


"Nad" wrote:

Hi,
How can i find the duration (No. of days) between two days.

ex. (10/20/2006 to 10/31/2006)

Thx & Regards,

  #4   Report Post  
Posted to microsoft.public.excel.misc
Nad Nad is offline
external usenet poster
 
Posts: 20
Default Find the Duration

Thanks Roger
Its working fine.
Also i want to add days to any date.
e.g. (adding 5days to 10/20/2006 i.e it should be 10/25/2006)

Thx again,

"Roger Govier" wrote:

Hi

Just take the earlier data away from the later date.
="10/31/2006"-"10/20/2006"
or with dates in A1 10/20/2006 and B1 10/31/2006
=B1-A1

Add 1 to the result if you want to include the whole of the 20th and the
whole of the 31st.
Format the cell with your formula as FormatCellsGeneral.

--
Regards

Roger Govier


"Nad" wrote in message
...
Hi,
How can i find the duration (No. of days) between two days.

ex. (10/20/2006 to 10/31/2006)

Thx & Regards,




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Find the Duration

Simply use the plus sign to add. If 10/20/2006 is in A1, use:

=a1+5

to get 10/25/2006.

--
Regards,
Fred


"Nad" wrote in message
...
Thanks Roger
Its working fine.
Also i want to add days to any date.
e.g. (adding 5days to 10/20/2006 i.e it should be 10/25/2006)

Thx again,

"Roger Govier" wrote:

Hi

Just take the earlier data away from the later date.
="10/31/2006"-"10/20/2006"
or with dates in A1 10/20/2006 and B1 10/31/2006
=B1-A1

Add 1 to the result if you want to include the whole of the 20th and the
whole of the 31st.
Format the cell with your formula as FormatCellsGeneral.

--
Regards

Roger Govier


"Nad" wrote in message
...
Hi,
How can i find the duration (No. of days) between two days.

ex. (10/20/2006 to 10/31/2006)

Thx & Regards,






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
Find Function Guy Lydig Excel Discussion (Misc queries) 2 May 19th 06 07:19 PM
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
Code needed to find records from bottom up Andy Excel Discussion (Misc queries) 4 December 5th 05 03:27 AM
find a cells from a range of cell kelvintaycc Excel Worksheet Functions 2 April 2nd 05 07:20 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM


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