Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Decimals on a date calculation

I'm calculating dates using the formula b6-c6/365.25 and get an answer like
3.31 what does the .31 refer to? Is it nearly a third of a year i.e 4
months? I can't get my head around it!

Thanks for any help

diane
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Decimals on a date calculation

What do B6 and C6 actually contain? Are you trying to find out how many
years there are between two dates? If so, then you will need to do this:

= (B6-C6)/365.25

Hope this helps.

Pete

"DianeG" wrote in message
...
I'm calculating dates using the formula b6-c6/365.25 and get an answer
like
3.31 what does the .31 refer to? Is it nearly a third of a year i.e 4
months? I can't get my head around it!

Thanks for any help

diane



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Decimals on a date calculation

Remember that if c6 contains a date c6/365.25 will give the number of years
from 1 January 1900. Any fractional part is a fraction of a year.
--
Gary''s Student - gsnu200805


"DianeG" wrote:

I'm calculating dates using the formula b6-c6/365.25 and get an answer like
3.31 what does the .31 refer to? Is it nearly a third of a year i.e 4
months? I can't get my head around it!

Thanks for any help

diane

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Decimals on a date calculation

Sorry I didn't explain myself fully, I did have two dates in the cells and
the calculation was written (b6-c6)/365.25 to calculate the number of years
between the dates. So if this is the case, the decimal is a fraction of the
year? .25 would be 3 months?

"Gary''s Student" wrote:

Remember that if c6 contains a date c6/365.25 will give the number of years
from 1 January 1900. Any fractional part is a fraction of a year.
--
Gary''s Student - gsnu200805


"DianeG" wrote:

I'm calculating dates using the formula b6-c6/365.25 and get an answer like
3.31 what does the .31 refer to? Is it nearly a third of a year i.e 4
months? I can't get my head around it!

Thanks for any help

diane

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Decimals on a date calculation

No it is 0.25 days if you mean the decimal part of 365.25

You can use this instead


=DATEDIF(B6,C6,"y")

for years and


=DATEDIF(B6,C6,"ym")


for months after the years have been stripped off


=DATEDIF(B6,C6,"md")


for days after the years and months have been stripped off

--


Regards,


Peo Sjoblom

"DianeG" wrote in message
...
Sorry I didn't explain myself fully, I did have two dates in the cells and
the calculation was written (b6-c6)/365.25 to calculate the number of
years
between the dates. So if this is the case, the decimal is a fraction of
the
year? .25 would be 3 months?

"Gary''s Student" wrote:

Remember that if c6 contains a date c6/365.25 will give the number of
years
from 1 January 1900. Any fractional part is a fraction of a year.
--
Gary''s Student - gsnu200805


"DianeG" wrote:

I'm calculating dates using the formula b6-c6/365.25 and get an
answer like
3.31 what does the .31 refer to? Is it nearly a third of a year i.e 4
months? I can't get my head around it!

Thanks for any help

diane





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Decimals on a date calculation

Thanks everybody!

"DianeG" wrote:

Sorry I didn't explain myself fully, I did have two dates in the cells and
the calculation was written (b6-c6)/365.25 to calculate the number of years
between the dates. So if this is the case, the decimal is a fraction of the
year? .25 would be 3 months?

"Gary''s Student" wrote:

Remember that if c6 contains a date c6/365.25 will give the number of years
from 1 January 1900. Any fractional part is a fraction of a year.
--
Gary''s Student - gsnu200805


"DianeG" wrote:

I'm calculating dates using the formula b6-c6/365.25 and get an answer like
3.31 what does the .31 refer to? Is it nearly a third of a year i.e 4
months? I can't get my head around it!

Thanks for any help

diane

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
date calculation Ann Excel Worksheet Functions 3 May 29th 08 11:28 PM
End Date Calculation (adding a start date duration) Silena K-K Excel Discussion (Misc queries) 5 January 25th 08 04:27 PM
Tricky Date calculation: How to calculate a future date [email protected] Excel Discussion (Misc queries) 9 August 11th 06 04:24 AM
Date Calculation T-Bone Excel Worksheet Functions 4 January 23rd 06 03:46 AM
Date calculation Box666 New Users to Excel 3 November 4th 05 02:11 PM


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