+ Reply to Thread
Results 1 to 5 of 5

Week & days in a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Karachi
    MS-Off Ver
    Excel 2003
    Posts
    4

    Week & days in a cell

    I have a cell containing the back date & the other has a current date, I would like to get the result in next cell with total weeks become between these two dates and also the remaining days in numbers i.e. 1 to 7 days. Result should shows like this 4.6, 4 denotes weeks & 6 denotes days. I have tried the formula =(A2-A1)/7, but it showed number of weeks but after decimal it do not show the number of days. Anyone can help.

    Sajj

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Week & days in a cell

    try this..


    Formula: copy to clipboard
    =INT((A2-A1)/7)+MOD((A2-A1)/7,1)*7/10
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Karachi
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Week & days in a cell

    Dear Debraj Roy:

    Many thanks, it works. God bless you.
    Your prompt action is highly appreciated.

    Regards,

    Sajj

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Week & days in a cell

    Thanks for the feedback & Rep..

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Week & days in a cell

    Quote Originally Posted by Sajj55 View Post
    Result should shows like this 4.6, 4 denotes weeks & 6 denotes days
    I dont know, why i am replying this NOW().. but its interesting, so just want to share..

    Formula: copy to clipboard
    =DOLLARFR((A2-A1)/7,7)


    By DOLLARFR, function, you can denote FRANCTION part, other that 10.. which means 2/3 (0.6666) can also be denoted as (0.2)
    to denote 10.6666 as 10.2 use
    Formula: copy to clipboard
    =DOLLARFR(A1,3)


    and incase of reverse.. to display 10.2 as 10.6666, we can also use.. DOLLARDE
    and to display 10.2 as 10.6666 use
    Formula: copy to clipboard
    =DOLLARDE(B1,3)

+ 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