+ Reply to Thread
Results 1 to 7 of 7

A number of days into weeks and days-How do you convert the decimal part of 0.571429

  1. #1
    Robert Christie
    Guest

    A number of days into weeks and days-How do you convert the decimal part of 0.571429

    Hi

    Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
    gives 3.571429.......weeks.
    How do you convert the decimal part of 0.571429 into number of days?. i.e. 4
    Can an Excel formula give the correct answer of 3 weeks 4 days.
    --
    Thank you

    Regards
    Aussie Bob C.
    Using Windows XP Home + Office 2003 Pro

  2. #2
    Registered User
    Join Date
    07-01-2004
    Location
    Kent, UK
    Posts
    74
    =mod(enddate - startsdate,7) will give the number of days.

    so

    =INT((enddate-startdate)/7)&" weeks "&MOD(enddate-startdate,7)&" days"

    returns

    3 weeks 4 days

  3. #3
    Bob Phillips
    Guest

    re: A number of days into weeks and days-How do you convert the decimal part of 0.571429

    =INT((H1-G1)/7)&" weeks"&IF(MOD(H1-G1,7)=0,"",", "&MOD(H1-G1,7)&" days")

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Robert Christie" <[email protected]> wrote in message
    news:[email protected]...
    > Hi
    >
    > Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
    > gives 3.571429.......weeks.
    > How do you convert the decimal part of 0.571429 into number of days?. i.e.

    4
    > Can an Excel formula give the correct answer of 3 weeks 4 days.
    > --
    > Thank you
    >
    > Regards
    > Aussie Bob C.
    > Using Windows XP Home + Office 2003 Pro




  4. #4
    Mangesh Yadav
    Guest

    re: A number of days into weeks and days-How do you convert the decimal part of 0.571429

    =INT(3.571429)
    will give you 3 weeks

    =(3.571429-INT(3.571429))*7
    will give you 4 days

    Replace 3.571429 with your formula

    Mangesh





    "Robert Christie" <[email protected]> wrote in message
    news:[email protected]...
    > Hi
    >
    > Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
    > gives 3.571429.......weeks.
    > How do you convert the decimal part of 0.571429 into number of days?. i.e.

    4
    > Can an Excel formula give the correct answer of 3 weeks 4 days.
    > --
    > Thank you
    >
    > Regards
    > Aussie Bob C.
    > Using Windows XP Home + Office 2003 Pro




  5. #5
    Robert Christie
    Guest

    re: A number of days into weeks and days-How do you convert the decimal part of 0.571429

    Thank you Bob, Mangesh and Alex for your quick replies.
    --
    Thank you

    Regards
    Aussie Bob C.
    Using Windows XP Home + Office 2003 Pro


    "Bob Phillips" wrote:

    > =INT((H1-G1)/7)&" weeks"&IF(MOD(H1-G1,7)=0,"",", "&MOD(H1-G1,7)&" days")
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Robert Christie" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi
    > >
    > > Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
    > > gives 3.571429.......weeks.
    > > How do you convert the decimal part of 0.571429 into number of days?. i.e.

    > 4
    > > Can an Excel formula give the correct answer of 3 weeks 4 days.
    > > --
    > > Thank you
    > >
    > > Regards
    > > Aussie Bob C.
    > > Using Windows XP Home + Office 2003 Pro

    >
    >
    >


  6. #6
    Registered User
    Join Date
    01-23-2020
    Location
    Pakistan
    MS-Off Ver
    2007
    Posts
    21

    Re: A number of days into weeks and days-How do you convert the decimal part of 0.571429

    Thanks a lot for this thread it solved my problem. But just one thing, i am getting 28 weeks 3.5 days. How do i round it to 4?

    Tried using round formula but then it also shows 28 weeks 7 days
    Last edited by Talhashabbir; 01-23-2020 at 03:23 AM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: A number of days into weeks and days-How do you convert the decimal part of 0.571429

    Administrative Note:

    Welcome to the forum Talhashabbir.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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