Consulting

Results 1 to 4 of 4

Thread: Solved: Formatting cells with times

  1. #1
    VBAX Regular
    Joined
    Aug 2008
    Posts
    16
    Location

    Solved: Formatting cells with times

    I am currently working on a timesheet using excel. I am trying to format the cells so that when an employee enters a time the program will add the colon. I have noticed that if I rely on the employee to add the colon they forget. Example: Employee enters 1600 and the spreadsheet shows this as 16:00. Probably an easy way to do this but it escapes me. Thanks for any help.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor david000's Avatar
    Joined
    Mar 2007
    Location
    Chicago
    Posts
    276
    Location
    =TIMEVALUE(LEFT(TEXT(A1,"0000"),2)&":"&RIGHT(TEXT(A1,"0000"),2))

  4. #4
    VBAX Regular
    Joined
    Aug 2008
    Posts
    16
    Location
    Thanks. Exactly what I needed. jrg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •