+ Reply to Thread
Results 1 to 16 of 16

Enter Date and Time quick way

Hybrid View

kryptic Enter Date and Time quick way 09-14-2013, 09:30 AM
Jakobshavn Re: Enter Date and Time quick... 09-14-2013, 09:40 AM
Tony Valko Re: Enter Date and Time quick... 09-14-2013, 09:41 AM
kryptic Re: Enter Date and Time quick... 09-14-2013, 11:02 AM
martindwilson Re: Enter Date and Time quick... 09-14-2013, 11:12 AM
kryptic Re: Enter Date and Time quick... 09-14-2013, 11:22 AM
Tony Valko Re: Enter Date and Time quick... 09-14-2013, 01:48 PM
martindwilson Re: Enter Date and Time quick... 09-14-2013, 11:28 AM
kryptic Re: Enter Date and Time quick... 09-14-2013, 12:00 PM
kryptic Re: Enter Date and Time quick... 09-15-2013, 04:20 AM
Tony Valko Re: Enter Date and Time quick... 09-15-2013, 09:30 AM
Tony Valko Re: Enter Date and Time quick... 09-15-2013, 10:05 PM
kryptic Re: Enter Date and Time quick... 09-17-2013, 07:04 AM
Tony Valko Re: Enter Date and Time quick... 09-17-2013, 10:09 AM
kryptic Re: Enter Date and Time quick... 09-19-2013, 10:29 AM
Tony Valko Re: Enter Date and Time quick... 09-19-2013, 10:59 AM
  1. #1
    Registered User
    Join Date
    09-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Enter Date and Time quick way

    Thanks very much. Now I am not able to calculate the number of hours worked from Shift Start and Shift End fields. If the Shift Start is 5:25 PM and Shift End is 4:15 AM, then I should be able to get 8.83 Hrs or 8 Hrs 50 Mins so that I can calculate the amount per hour.

    Is there anyway I can change the code so that when I type in Shift Start, I should get PM only? I tend to type 5 instead of 17 as it is on paper but typing 5 gives me AM. As I quickly type, I cannot think and type whatever is on the paper.
    Last edited by kryptic; 09-17-2013 at 07:09 AM. Reason: added extra line

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Enter Date and Time quick way

    Quote Originally Posted by kryptic View Post
    Thanks very much. Now I am not able to calculate the number of hours worked from Shift Start and Shift End fields. If the Shift Start is 5:25 PM and Shift End is 4:15 AM, then I should be able to get 8.83 Hrs or 8 Hrs 50 Mins so that I can calculate the amount per hour.
    5:25 PM to 4:15 AM is 10hrs 50mins.

    =MOD(end-start,1) formatted as h:mm = 10:50

    =MOD(end-start,1)*24 formatted as General or Number = 10.8333333333

    Is there anyway I can change the code so that when I type in Shift Start, I should get PM only? I tend to type 5 instead of 17 as it is on paper but typing 5 gives me AM. As I quickly type, I cannot think and type whatever is on the paper.
    You can probably do that but I'm not much of a programmer and I don't know how to do it.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] automatically enter time & date
    By MUDDER460 in forum Excel General
    Replies: 18
    Last Post: 12-07-2012, 06:49 AM
  2. Macro to automatically enter time & date
    By mellis123 in forum Excel General
    Replies: 6
    Last Post: 06-16-2012, 06:44 AM
  3. Enter date and time
    By akhtar151 in forum Excel General
    Replies: 5
    Last Post: 10-13-2007, 11:25 AM
  4. [SOLVED] Any quick key for entering Current Date and Time?
    By Philip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2006, 12:25 PM
  5. [SOLVED] Any quick key to insert current Date and Time?
    By Philip in forum Excel General
    Replies: 2
    Last Post: 01-12-2006, 12:20 PM

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