+ Reply to Thread
Results 1 to 4 of 4

Decimal to hours and minutes conversion

Hybrid View

MarkRoberts Decimal to hours and minutes... 12-30-2009, 06:09 PM
shg Re: Decimal to hours and... 12-30-2009, 06:15 PM
MarkRoberts Re: Decimal to hours and... 12-30-2009, 07:56 PM
DonkeyOte Re: Decimal to hours and... 12-31-2009, 03:52 AM
  1. #1
    Registered User
    Join Date
    12-30-2009
    Location
    Nottingham, UK
    MS-Off Ver
    Excel 2002
    Posts
    2

    Decimal to hours and minutes conversion

    Ok....so...here's my problem.

    I have created a multi sheet workbook with a consolidation sheet at the end. On the consolidation sheet I am using the concatenate function to see if a cell is populated on one of the other 11 sheets. If it is, I would like it to display the contents of the relevant cell in the consolidation sheet cell.

    The problem I am having is that the original cell contains a time in hours and minutes. However, when it appears on the consolidation sheet it is converted to a decimal. I would like this to be displayed in the same time format as the previous sheets but no matter which conversion formula I use, it doesn't appear to display correctly.

    Can anyone help?

    Regards,

    Mark

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Decimal to hours and minutes conversion

    Welcome to the forum, Mark.

    I think we'd be hard-pressed to help without seeing what you're doing.

    Maybe it's as simple as formatting the result as Time?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-30-2009
    Location
    Nottingham, UK
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Decimal to hours and minutes conversion

    Hi shg,

    I'm actually at home now and don't have the file on my home PC. I will get someone at the office to email it over to me in the morning and will post the formula I'm using.

    I don't think it is as simple as formatting as Time as my cells are already formatted to hours and minutes, but you never know.

    I will get back to you as soon as I have the file.

    Thanks

    Mark

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Decimal to hours and minutes conversion

    If you're concatenating the 11 sheet values then the chances are the resulting value is a number stored as text.
    Time is Decimal so the result you're seeing is seemingly the time value of interest but as outlined it's being stored as a string hence not displaying as time.
    To show this value as time you need to "coerce" your formula output back to a number, eg:

    =0+(yourformula)
    If the cell is formatted as time that should work...

    However it's worth noting that if:

    a) the cell of interest is the same on each of the 11 sheets
    b) the cell never contains error values
    c) the 11 sheets are listed in sequence
    you could perhaps just use a 3D Sum as opposed to concatenation ?

    In syntax terms:

    =SUM('First Sheet:Last Sheet'!CellReference)

+ 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