+ Reply to Thread
Results 1 to 5 of 5

how do I convert an integer to hh:mm in excel?

Hybrid View

  1. #1
    kdell
    Guest

    how do I convert an integer to hh:mm in excel?

    Need to convert a simple integer (no decimals) to HH:MM format. The SQL
    statement to convert this is as follows.... “select
    datediff(mi,cast(cast(250/100 as int) as varchar) + ':' + cast(cast( 250 %
    100 * .6 as int) as varchar)”

    Trying to get the formula format correct in XCel. If you have any ideas that
    would be great…


  2. #2
    Tom Ogilvy
    Guest

    RE: how do I convert an integer to hh:mm in excel?

    =TIMEVALUE(TRUNC(250/100)&":"&MOD(250,100)*0.6)

    --
    Regards,
    Tom Ogilvy


    "kdell" wrote:

    > Need to convert a simple integer (no decimals) to HH:MM format. The SQL
    > statement to convert this is as follows.... “select
    > datediff(mi,cast(cast(250/100 as int) as varchar) + ':' + cast(cast( 250 %
    > 100 * .6 as int) as varchar)”
    >
    > Trying to get the formula format correct in XCel. If you have any ideas that
    > would be great…
    >


  3. #3
    kdell
    Guest

    RE: how do I convert an integer to hh:mm in excel?

    Tom,

    Where do I put in the cell value (ex: A1) that I'm wishing to convert?

    Thanks,
    Kim

    "Tom Ogilvy" wrote:

    > =TIMEVALUE(TRUNC(250/100)&":"&MOD(250,100)*0.6)
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "kdell" wrote:
    >
    > > Need to convert a simple integer (no decimals) to HH:MM format. The SQL
    > > statement to convert this is as follows.... “select
    > > datediff(mi,cast(cast(250/100 as int) as varchar) + ':' + cast(cast( 250 %
    > > 100 * .6 as int) as varchar)”
    > >
    > > Trying to get the formula format correct in XCel. If you have any ideas that
    > > would be great…
    > >


  4. #4
    kdell
    Guest

    RE: how do I convert an integer to hh:mm in excel?

    Tom,

    This gives a decimal number back... any other suggestions?

    Kim


    "kdell" wrote:

    > Tom,
    >
    > Where do I put in the cell value (ex: A1) that I'm wishing to convert?
    >
    > Thanks,
    > Kim
    >
    > "Tom Ogilvy" wrote:
    >
    > > =TIMEVALUE(TRUNC(250/100)&":"&MOD(250,100)*0.6)
    > >
    > > --
    > > Regards,
    > > Tom Ogilvy
    > >
    > >
    > > "kdell" wrote:
    > >
    > > > Need to convert a simple integer (no decimals) to HH:MM format. The SQL
    > > > statement to convert this is as follows.... “select
    > > > datediff(mi,cast(cast(250/100 as int) as varchar) + ':' + cast(cast( 250 %
    > > > 100 * .6 as int) as varchar)”
    > > >
    > > > Trying to get the formula format correct in XCel. If you have any ideas that
    > > > would be great…
    > > >


  5. #5
    Dave Peterson
    Guest

    Re: how do I convert an integer to hh:mm in excel?

    format it as time.

    kdell wrote:
    >
    > Tom,
    >
    > This gives a decimal number back... any other suggestions?
    >
    > Kim
    >
    > "kdell" wrote:
    >
    > > Tom,
    > >
    > > Where do I put in the cell value (ex: A1) that I'm wishing to convert?
    > >
    > > Thanks,
    > > Kim
    > >
    > > "Tom Ogilvy" wrote:
    > >
    > > > =TIMEVALUE(TRUNC(250/100)&":"&MOD(250,100)*0.6)
    > > >
    > > > --
    > > > Regards,
    > > > Tom Ogilvy
    > > >
    > > >
    > > > "kdell" wrote:
    > > >
    > > > > Need to convert a simple integer (no decimals) to HH:MM format. The SQL
    > > > > statement to convert this is as follows.... “select
    > > > > datediff(mi,cast(cast(250/100 as int) as varchar) + ':' + cast(cast( 250 %
    > > > > 100 * .6 as int) as varchar)”
    > > > >
    > > > > Trying to get the formula format correct in XCel. If you have any ideas that
    > > > > would be great…
    > > > >


    --

    Dave Peterson

+ 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