+ Reply to Thread
Results 1 to 5 of 5

convert units

  1. #1
    luiss
    Guest

    convert units

    Hello,

    I am trying to convert a number of hours to the format "days;hours". I do
    not a precision higher then hour - i.e., do not need fractions of hour. E.g.
    50 would appear as "2days;02hours", "50,6" as "2days, 3hours". What should I
    do? I tried the "Convert" function, but did not manage to find the solution.

    Thanks and regards,

    Luis Serpa


  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try this formula

    =INT(ROUND(A8,0)/24)&" days, "&MOD(ROUND(A8,0),24)&" hours"

  3. #3
    Gary''s Student
    Guest

    RE: convert units

    try:
    =INT(A1/24) & " days " & A1-INT(A1/24)*24 & " hr"
    --
    Gary''s Student


    "luiss" wrote:

    > Hello,
    >
    > I am trying to convert a number of hours to the format "days;hours". I do
    > not a precision higher then hour - i.e., do not need fractions of hour. E.g.
    > 50 would appear as "2days;02hours", "50,6" as "2days, 3hours". What should I
    > do? I tried the "Convert" function, but did not manage to find the solution.
    >
    > Thanks and regards,
    >
    > Luis Serpa
    >


  4. #4
    luiss
    Guest

    Re: convert units

    Many thanks!



    "daddylonglegs" wrote:

    >
    > Try this formula
    >
    > =INT(ROUND(A8,0)/24)&" days, "&MOD(ROUND(A8,0),24)&" hours"
    >
    >
    > --
    > daddylonglegs
    > ------------------------------------------------------------------------
    > daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
    > View this thread: http://www.excelforum.com/showthread...hreadid=514541
    >
    >


  5. #5
    luiss
    Guest

    RE: convert units

    many Thanks!

    "Gary''s Student" wrote:

    > try:
    > =INT(A1/24) & " days " & A1-INT(A1/24)*24 & " hr"
    > --
    > Gary''s Student
    >
    >
    > "luiss" wrote:
    >
    > > Hello,
    > >
    > > I am trying to convert a number of hours to the format "days;hours". I do
    > > not a precision higher then hour - i.e., do not need fractions of hour. E.g.
    > > 50 would appear as "2days;02hours", "50,6" as "2days, 3hours". What should I
    > > do? I tried the "Convert" function, but did not manage to find the solution.
    > >
    > > Thanks and regards,
    > >
    > > Luis Serpa
    > >


+ 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