+ Reply to Thread
Results 1 to 5 of 5

Thread: how to calculate time from decimal numbers

  1. #1
    Registered User
    Join Date
    10-20-2008
    Location
    Kolkata
    Posts
    6

    how to calculate time from decimal numbers

    Hello there!

    got stuck on another Excel calculation step.

    attached, is an excel file.
    you will see that there are 4 columns.

    the decimal numbers are time in 24 hour format
    so 8.05 means 8:05 and 13.3 means 13:30

    is there any way that the decimal time entries can be added up and sub-totaled for the day?

    i am open to all suggestions, but the data set is as it is, i cant do anything to change that
    12 employees with nearly 1 year of data, comes up to about 17,500 cells.
    Attached Files Attached Files
    Last edited by arkantos; 11-09-2011 at 12:34 PM. Reason: to change thread title

  2. #2
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,150

    Re: how to calculate time from decimal numbers

    Hi arkantos
    probably better to convert the values to time and then add then in the correct format
    http://www.exceltip.com/st/Convertin...Value/944.html
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,213

    Re: how to calculate time from decimal numbers

    It would be much easier if you would enter times as times.
    Attached Files Attached Files
    "Relax. What is mind? No matter. What is matter? Never mind!"

  4. #4
    Registered User
    Join Date
    10-20-2008
    Location
    Kolkata
    Posts
    6

    Re: how to calculate time from decimal numbers

    Pike,
    thank your for your inputs. unfortunately, the data is already there, as i mentioned, and changing 17500 and growing cells of data is just not my cup of tea.

    Zbor,
    my goodness, it IS possible, you are a godsend!
    i seem to understand the logic of the equation, but can you please explain this part:

    SUBSTITUTE(TEXT(F30,"00,00"),",",":")
    why all the empty commas with quotes?


    thank you both for replying!
    Arkantos.

  5. #5
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,150

    Re: how to calculate time from decimal numbers

    hu arkantos
    The substitute synatx

    SUBSTITUTE(text, old_text, new_text, [instance_num])
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

+ 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.2.0