+ Reply to Thread
Results 1 to 4 of 4

Adding Hours & Minutes On A Table

  1. #1
    Registered User
    Join Date
    05-04-2014
    Location
    Sandy, UT
    MS-Off Ver
    Excel 2010
    Posts
    2

    Adding Hours & Minutes On A Table

    I use a task table to add up the hours and minutes I spend on specific tasks. It looks like this:

    Task Time Table.png

    Is there a way to get Excel to convert every 60 minutes to 1 hour in the hours column?

    So instead of showing the totals of 6 and 90, it would show totals of 7 and 30.

    Thank you for your time!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Adding Hours & Minutes On A Table

    column b
    =TEXT(SUM($B$3:$B$7)/24+SUM($C$2:$C$7)/1440,"[h]")+0 cell formated general
    column c
    =MOD(SUM(C2:C7),60)
    A
    B
    C
    1
    2
    a
    30
    3
    b
    4
    30
    4
    c
    30
    5
    d
    20
    6
    e
    20
    7
    f
    2
    8
    9
    =TEXT(SUM($B$3:$B$7)/24+SUM($C$2:$C$7)/1440,"[h]")+0
    =MOD(SUM(C2:C7),60)



    A
    B
    C
    1
    2
    a
    30
    3
    b
    4
    30
    4
    c
    30
    5
    d
    20
    6
    e
    20
    7
    f
    2
    8
    9
    8
    10
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Adding Hours & Minutes On A Table

    or maybe shorter
    b9= =SUM(B2:B7)+(SUM(C2:C7)-MOD(SUM(C2:C7),60))/60
    c9= =MOD(SUM(C2:C7),60)

  4. #4
    Registered User
    Join Date
    05-04-2014
    Location
    Sandy, UT
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Adding Hours & Minutes On A Table

    Thank you! The first code works perfectly! The second one leaves a decimal on the hours.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding hours and minutes
    By mardigras96 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-18-2012, 11:52 AM
  2. Adding Minutes and hours
    By Paul64 in forum Excel General
    Replies: 0
    Last Post: 10-01-2011, 07:01 PM
  3. Adding hours and minutes
    By josvill2010 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-14-2011, 09:02 AM
  4. Adding Hours:Minutes
    By winnie_shrub in forum Excel General
    Replies: 2
    Last Post: 09-18-2009, 06:03 AM
  5. Adding hours and minutes
    By leo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2006, 11:00 AM

Tags for this Thread

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