+ Reply to Thread
Results 1 to 14 of 14

Time / Hours Format

  1. #1
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Time / Hours Format

    The cell that has a value of "96:00" I actually entered "4"
    The cell that has a value of "4:00" I actually entered "4:00"

    How can I change the cell to automatically have it value of "4:00" if I only type in "4" ... the way it is setup now is you have to add the extra :00 which is annoying.

    Thank you in advance!
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Time / Hours Format

    Excel is reading your entry of 4:00 as date/time not a value equal to 4.
    To fix the numbers as 2 decimal places click on "format" in the Cells group and select format > cells > number and choose 2 decimal places

  3. #3
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Time / Hours Format

    Yea but that will still won't work because the total column is adding it as time - [hh]:mm. The point is to add hours in the entire column..No decimal places.

    4:00
    11:00
    5:00

    Total: 20:00 hours

    I just don't want to have to add the ":00" to it every time.

    Thank you again.

  4. #4
    Forum Contributor
    Join Date
    10-02-2008
    Location
    Berkeley, CA
    MS-Off Ver
    Windows 2007
    Posts
    105

    Re: Time / Hours Format

    Then you have to format the cell the total is going into as Time.
    Mac

  5. #5
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Time / Hours Format

    Here is a screenshot of the entire spreadsheet, maybe this helps...

    Reference B6

    Thank you.
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Time / Hours Format

    Hi
    if you are entering numbers in a cell with time/date format you will have to enter either 4:00 or =4/24, because in this format " 1 " is a day (=24 hours)

    why not just apply 2 decimal places to the whole column, including the total?

    of, if you want the totals in hours format but the cells above in number format, divide your total by 24

    =(sum(H5:H30)-B5-B7)/24

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,471

    Re: Time / Hours Format

    Format/custom cells H5:H30 with 00":00".
    See attachment.
    Attached Files Attached Files
    Quang PT

  8. #8
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Time / Hours Format

    .... see below ... filler ...

  9. #9
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Time / Hours Format

    Quote Originally Posted by bebo021999 View Post
    Format/custom cells H5:H30 with 00":00".
    See attachment.

    That is good, except now when I enter "3:15" for example, it displays as a decimal lol

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,471

    Re: Time / Hours Format

    Quote Originally Posted by nkitchen31 View Post
    .... see below ... filler ...
    I create a helper column. See attachment.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Time / Hours Format

    Quote Originally Posted by bebo021999 View Post
    I create a helper column. See attachment.
    Thank you. I see what you are saying, but the point is to not have a formula where the user is going to enter data. Because for the following month, they are going to have to copy and paste the formula back through the "H" column again.

    There's got to be another way...

  12. #12
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Time / Hours Format

    one solution may be to use a macro triggered by a worksheet change event so that any whole number greater than 1 inserted in your input range is automatically divided by 24. I am not very fond of these macros as they can cause unexpected oddities, but you might want to give it a go.

    This macro assumes that you will be inserting your values in range H5:H30 and that this range is formatted as time. The macro will automatically divide any whole number of 1 or more entered in this range by 24, converting it to hours.

    To add a macro to the worksheet, right click on the tab with the sheet's name and click "view code" then paste this code:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: Time / Hours Format

    Quote Originally Posted by NickyC View Post
    one solution may be to use a macro triggered by a worksheet change event so that any whole number greater than 1 inserted in your input range is automatically divided by 24. I am not very fond of these macros as they can cause unexpected oddities, but you might want to give it a go.

    This macro assumes that you will be inserting your values in range H5:H30 and that this range is formatted as time. The macro will automatically divide any whole number of 1 or more entered in this range by 24, converting it to hours.

    To add a macro to the worksheet, right click on the tab with the sheet's name and click "view code" then paste this code:

    Please Login or Register  to view this content.

    I'm with you on that one about the Macros ... thank you for all your responses. That just sucks, I thought there would be an easier way. It all works EXCEPT on a whole number. 4:15, 6:45, 2:14, 9:28, etc... all work fine... frustrating haha

  14. #14
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Time / Hours Format

    The solution I use for entering times is Autocorrect, set up to replace ++ (plus plus) with : (colon) so when I'm entering times I just enter 4++15 and Excel converts that to 4:15. That lets me do it all on the number pad.
    The problem with that method, of course, is that it only works for me - not for anyone else if they don't do the same.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. [SOLVED] Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours
    By noobface in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-21-2021, 03:45 AM
  2. [SOLVED] SUM weekday hours - CF time format ?
    By Lukael in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2014, 09:41 AM
  3. [SOLVED] Time in Time format and text foramt - Finding the Hours difference
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2013, 07:14 AM
  4. Textbox with Time format > 24 hours
    By flashdisk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2013, 01:55 AM
  5. [SOLVED] Time format > 24 hours
    By flashdisk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2013, 07:20 PM
  6. Replies: 4
    Last Post: 07-14-2010, 03:17 PM
  7. [SOLVED] Convert hours and minutes in time format into fractions of hours..
    By Akern in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-21-2005, 10:06 AM

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