+ Reply to Thread
Results 1 to 5 of 5

conversion question

  1. #1
    Tammi P
    Guest

    conversion question

    is there a formula to convert 5.08 into years/months? I know 5 = 5 years,
    but can't figure out how to determine what .08 is. Thanks

  2. #2
    JMB
    Guest

    RE: conversion question

    Maybe
    =INT(A1)&" Years "&ROUND(MOD(A1,1)*12,2)&" Months"
    where A1 = 5.08

    which is 0.96. If you have specific start/end dates, you may want to look
    at DateDif. Whether or not 0.08 of a year is one month depends on which
    month you're talking about.


    "Tammi P" wrote:

    > is there a formula to convert 5.08 into years/months? I know 5 = 5 years,
    > but can't figure out how to determine what .08 is. Thanks


  3. #3
    Registered User
    Join Date
    05-10-2006
    Posts
    53
    Hi,

    Assuming your data is in A1 and that 0.08 is a decimal representation

    B1 = DATE(2000+FLOOR(A1,1),1,MOD(A1,1)*365)

    You could use the data at this point by custom formatting it,

    or you could add two more cells with
    =MONTH(B1)
    =YEAR(B1)

    and custom format them. Either way, it will work.

  4. #4
    Tammi P
    Guest

    RE: conversion question

    Thank you! I will see if there are specific start/end dates - although I'm
    not sure how to use the DateDif - so I may post again.

    "JMB" wrote:

    > Maybe
    > =INT(A1)&" Years "&ROUND(MOD(A1,1)*12,2)&" Months"
    > where A1 = 5.08
    >
    > which is 0.96. If you have specific start/end dates, you may want to look
    > at DateDif. Whether or not 0.08 of a year is one month depends on which
    > month you're talking about.
    >
    >
    > "Tammi P" wrote:
    >
    > > is there a formula to convert 5.08 into years/months? I know 5 = 5 years,
    > > but can't figure out how to determine what .08 is. Thanks


  5. #5
    JMB
    Guest

    RE: conversion question

    You're welcome.

    "Tammi P" wrote:

    > Thank you! I will see if there are specific start/end dates - although I'm
    > not sure how to use the DateDif - so I may post again.
    >
    > "JMB" wrote:
    >
    > > Maybe
    > > =INT(A1)&" Years "&ROUND(MOD(A1,1)*12,2)&" Months"
    > > where A1 = 5.08
    > >
    > > which is 0.96. If you have specific start/end dates, you may want to look
    > > at DateDif. Whether or not 0.08 of a year is one month depends on which
    > > month you're talking about.
    > >
    > >
    > > "Tammi P" wrote:
    > >
    > > > is there a formula to convert 5.08 into years/months? I know 5 = 5 years,
    > > > but can't figure out how to determine what .08 is. Thanks


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1