Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula for calculating time period between 2 dates

Can someone help me create a formula for calculating the difference between 2
dates:

column A: date of birth
column B: date of death
column C: time period between A and B (C1=B1-A1; C2 = A2-B2, etc.)

Thanks.
Raj
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Formula for calculating time period between 2 dates

Difference of what ?
For Years: =DATEDIF(A1,B1,"Y")
For Months: =DATEDIF(A1,B1,"m")
For Days: =DATEDIF(A1,B1,"d")
Micky


"Raj" wrote:

Can someone help me create a formula for calculating the difference between 2
dates:

column A: date of birth
column B: date of death
column C: time period between A and B (C1=B1-A1; C2 = A2-B2, etc.)

Thanks.
Raj

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula for calculating time period between 2 dates

Yes, that's right. It gives the answer in days. Format the result as number
or general, not as date.
--
David Biddulph

"Raj" <Raj @discussions.microsoft.com wrote in message
...
Can someone help me create a formula for calculating the difference
between 2
dates:

column A: date of birth
column B: date of death
column C: time period between A and B (C1=B1-A1; C2 = A2-B2, etc.)

Thanks.
Raj



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Formula for calculating time period between 2 dates

Enter this formula in C1 and drag/copy down.


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


Gord Dibben MS Excel MVP


On Wed, 9 Dec 2009 08:00:01 -0800, Raj <Raj @discussions.microsoft.com
wrote:

Can someone help me create a formula for calculating the difference between 2
dates:

column A: date of birth
column B: date of death
column C: time period between A and B (C1=B1-A1; C2 = A2-B2, etc.)

Thanks.
Raj


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
Converting Dates to Week Ending time period drew Excel Worksheet Functions 8 June 24th 08 04:09 PM
Calculating time from a specific paycheck period BobR Excel Worksheet Functions 3 September 23rd 07 02:51 PM
need help calculating revenue over period of time [email protected] Excel Discussion (Misc queries) 0 February 22nd 07 08:16 PM
Formula for calculating 12 month rolling period Stroodle Excel Discussion (Misc queries) 0 August 17th 06 03:16 PM
Counting dates greater than a certain time period [email protected] Excel Worksheet Functions 7 April 26th 06 11:25 PM


All times are GMT +1. The time now is 02:46 AM.

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"