+ Reply to Thread
Results 1 to 5 of 5

Automatic generation of Start time, end time and total time in excel

  1. #1
    Registered User
    Join Date
    08-18-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    6

    Automatic generation of Start time, end time and total time in excel

    Hi,

    I am very new in VBA and would like to use this to create a productivity metrics. Could someone help me figure out how I can do the following:
    - Column A: predefined task names which cannot be changed by anyone and are protected.
    - column B: Start Time, when i click on column A and go to column b, the time would start
    - Column C: End Time, when i click on column A and go to column c, the time would end
    -Column d: total time consumed while doing the task

    Column B and C should not be susceptible to overwriting.

    Please advise on how I'm going to do this. Thanks!

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatic generation of Start time, end time and total time in excel

    Hi,

    One way would be with the following two Sheet event macros. First protect the sheet then click in column A to record the Start Time, and right click in column A to record the end time. Column D is used as a test indicator.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  3. #3
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatic generation of Start time, end time and total time in excel

    Simpler, simply track the selection of cells in column B and C and enter a timestamp into the cells clicked. When a timestamp is entered into C, a calculation goes into D as well.

    Something like this should get you started:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-18-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Automatic generation of Start time, end time and total time in excel

    Thank you Jerry! But how will I be able to create multiple start time and end time, let's say 10 each?

  5. #5
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatic generation of Start time, end time and total time in excel

    You can click on as many column B cells as you wish without clicking column C to end a previous one, it will keep starting new rows as you do.

    When you finally click a column C cell, it will close that row only.

+ 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. Replies: 7
    Last Post: 04-25-2020, 03:23 AM
  2. Replies: 3
    Last Post: 03-27-2012, 01:07 PM
  3. display end time automatically upon entering start time and time usage
    By stoey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2008, 06:16 PM
  4. [SOLVED] template or formula for start time -finish time -total hours ple
    By cc in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-27-2006, 01:10 PM
  5. Replies: 1
    Last Post: 02-22-2005, 01:06 PM

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